pull/530/head
liuzheng712 2016-09-04 07:04:15 +08:00
parent d371c0c5ae
commit 32c49c080c
1 changed files with 3 additions and 5 deletions

View File

@ -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'):
os.makedirs('../logs')
except:
pass
else: raise
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jumpserver.settings")
try: