From 111ce061df2f60ca6c3dd4a1a55bbfa47e1ff8a6 Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Wed, 30 Nov 2022 13:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E4=BB=B6=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Common/create_barcode.py | 1 + 2 files changed, 2 insertions(+) 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