Commit 32c49c08 authored by liuzheng712's avatar liuzheng712

update

parent d371c0c5
......@@ -5,11 +5,9 @@ import errno
if __name__ == "__main__":
try:
os.makedirs('./logs')
except OSError as exc: # Python > 2.5 (except OSError, exec: for Python < 2.5)
if exc.errno == errno.EEXIST and os.path.isdir('./logs'):
pass
else: raise
os.makedirs('../logs')
except:
pass
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jumpserver.settings")
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment