Update extractunitypackage.py

Added a chmod call to clear the file permissions.
This commit is contained in:
Entwicklerpages 2014-07-23 21:24:05 +02:00
parent 95240e4c45
commit fc515eec95

View file

@ -16,6 +16,7 @@
# specified, the path should already exist.
import os
import stat
import shutil
import sys
import tarfile
@ -91,7 +92,12 @@ for asset in mapping:
os.makedirs(destDir)
shutil.move(source, destFile)
# change file permissions for unix because under mac os x
# (perhaps also other unix systems) all files are marked as executable
# for safety reasons os x prevent the access to the extracted files
os.chmod(destFile, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
print asset, '=>', mapping[asset]
# done, cleanup any leftovers...