diff options
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/ServerThread.py | 1 | ||||
-rw-r--r-- | module/web/manage.py | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py index d9f0f8cdc..2ac39c2c8 100644 --- a/module/web/ServerThread.py +++ b/module/web/ServerThread.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import with_statement import threading from os.path import join from subprocess import Popen, PIPE, STDOUT diff --git a/module/web/manage.py b/module/web/manage.py index 782f6fbe0..6a00ab565 100644 --- a/module/web/manage.py +++ b/module/web/manage.py @@ -1,9 +1,8 @@ #!/usr/bin/env python - +from __future__ import with_statement import os pid = os.fork() - if pid: with open("webserver.pid", "w") as f: f.write(str(pid)) |