添加文件权限

duizhaopin
13507605001 2 years ago
parent 642f286bf4
commit 111ce061df

1
.gitignore vendored

@ -28,6 +28,7 @@ MANIFEST
.vscode .vscode
.vscode/* .vscode/*
runserver_log/ runserver_log/
img
# PyInstaller # PyInstaller
# Usually these files are written by a python script from a template # Usually these files are written by a python script from a template

@ -24,6 +24,7 @@ class CreateBarcode:
""" """
code_path = os.path.join(os.getcwd(), "img") code_path = os.path.join(os.getcwd(), "img")
if not os.path.exists(code_path): if not os.path.exists(code_path):
os.umask(0)
os.makedirs(code_path) os.makedirs(code_path)
def __init__(self): def __init__(self):
pass pass

Loading…
Cancel
Save