Commit d371c0c5 authored by liuzheng712's avatar liuzheng712

mkdirp

parent 47171174
#!/usr/bin/env python
import os
import sys
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.environ.setdefault("DJANGO_SETTINGS_MODULE", "jumpserver.settings")
try:
from django.core.management import execute_from_command_line
......
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