mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-19 01:07:51 +00:00
update
This commit is contained in:
parent
d371c0c5ae
commit
32c49c080c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user