Skip to content

Commit

Permalink
Copy file with permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Jan 10, 2024
1 parent c4cf3a6 commit 1090bad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/gdcef/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from subprocess import run
from multiprocessing import cpu_count
from packaging import version
from shutil import move, copymode

###############################################################################
### Global user settings
Expand Down Expand Up @@ -98,6 +99,7 @@ def copyfile(file_name, folder):
dest = os.path.join(folder, os.path.basename(file_name))
print("Copy " + file_name + " => " + dest)
shutil.copyfile(file_name, dest)
copymode(file_name, dest)

###############################################################################
### Equivalent to mkdir -p
Expand Down

0 comments on commit 1090bad

Please sign in to comment.