start.py 291 B

123456789101112131415161718
  1. #!/usr/bin/env python3
  2. # Included modules
  3. import sys
  4. # ZeroNet Modules
  5. import zeronet
  6. def main():
  7. if "--open_browser" not in sys.argv:
  8. sys.argv = [sys.argv[0]] + ["--open_browser", "default_browser"] + sys.argv[1:]
  9. zeronet.start()
  10. if __name__ == '__main__':
  11. main()