title: How to run python with SimpleHttpRequestHandler
body: <p>I'm using python3.
  I want to show a one page but I got 404 not found file:</p>
  <pre><code>import pymysql.cursors
  import http.server
  import socketserver
  from furl import furl
  
  
  
  class MyServer(http.server.SimpleHTTPRequestHandler):
      def do_GET(self):
          print(&quot;jkjhjkhk&quot;) #printed
          print(self.path)
          if self.path == '/':
              self.path = './desktop/formdailyactivities/index.html'
          else:
              self.send_response(200)
              print (self.path)
              f = furl(self.path)
              
              # activity = f.args[&quot;activity&quot;]
              # time = f.args[&quot;time&quot;]
              # date = f.args[&quot;date&quot;]
  
              # print(activity)
              # print(time)
              # print(date)
  
              
             # s1.insert(activity, time, date)
          return http.server.SimpleHTTPRequestHandler.do_GET(self)
  
  
  handler_object = MyServer
  
  PORT = 8080
  my_server = socketserver.TCPServer((&quot;&quot;,PORT), handler_object)
  my_server.serve_forever()
  </code></pre>