summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project.py b/project.py
index d81152cf..96ab907b 100644
--- a/project.py
+++ b/project.py
@@ -209,9 +209,9 @@ class _CopyFile:
209 if os.path.exists(dest): 209 if os.path.exists(dest):
210 os.remove(dest) 210 os.remove(dest)
211 else: 211 else:
212 dir = os.path.dirname(dest) 212 dest_dir = os.path.dirname(dest)
213 if not os.path.isdir(dir): 213 if not os.path.isdir(dest_dir):
214 os.makedirs(dir) 214 os.makedirs(dest_dir)
215 shutil.copy(src, dest) 215 shutil.copy(src, dest)
216 # make the file read-only 216 # make the file read-only
217 mode = os.stat(dest)[stat.ST_MODE] 217 mode = os.stat(dest)[stat.ST_MODE]