omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    FilePeeker

    Pythonista
    1
    1
    1030
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • reefboy1
      reefboy1 last edited by

      I'm trying to do something like FileNav but I'm not as good as a programmer to make that, so I tried this. It's called FilePeeker.py

      import SimpleHTTPServer
      import SocketServer
      import webbrowser
      
      handler = SimpleHTTPServer.SimpleHTTPRequestHandler
      httpd = SocketServer.TCPServer(("", 0), handler)
      
      port = httpd.server_address[1]
      
      webbrowser.open('http://localhost:' + str(port))
      
      httpd.serve_forever()
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors