diff --git a/.gitignore b/.gitignore index 21c47f1..12a83b5 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ MANIFEST .vscode .vscode/* runserver_log/ +img # PyInstaller # Usually these files are written by a python script from a template diff --git a/Common/create_barcode.py b/Common/create_barcode.py index 699558c..1ef5dc4 100644 --- a/Common/create_barcode.py +++ b/Common/create_barcode.py @@ -24,6 +24,7 @@ class CreateBarcode: """ code_path = os.path.join(os.getcwd(), "img") if not os.path.exists(code_path): + os.umask(0) os.makedirs(code_path) def __init__(self): pass