Launch.py 707 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/python
  2. # You can pass several parameters on the command line
  3. # (more info by running this with option --help)
  4. # or you can modify the default values here
  5. # (more info in WebKit.Launch):
  6. import os
  7. workDir = None
  8. webwareDir = os.path.dirname(os.path.normpath(os.getcwd()))
  9. libraryDirs = ['Lib']
  10. runProfile = False
  11. logFile = None
  12. pidFile = None
  13. user = None
  14. group = None
  15. import sys
  16. sys.path.insert(0, webwareDir)
  17. from WebKit import Launch
  18. Launch.workDir = workDir
  19. Launch.webwareDir = webwareDir
  20. Launch.libraryDirs = libraryDirs
  21. Launch.runProfile = runProfile
  22. Launch.logFile = logFile
  23. Launch.pidFile = pidFile
  24. Launch.user = user
  25. Launch.group = group
  26. if __name__ == '__main__':
  27. Launch.main()