|
|
@ -17,7 +17,7 @@ |
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
import subprocess, sys, re, os, shutil, os.path |
|
|
|
import subprocess, sys, re, os, shutil, stat, os.path |
|
|
|
from time import sleep |
|
|
|
from time import sleep |
|
|
|
from argparse import ArgumentParser |
|
|
|
from argparse import ArgumentParser |
|
|
|
|
|
|
|
|
|
|
@ -257,6 +257,10 @@ def copyFramework(framework, path, verbose): |
|
|
|
print "Copied:", fromPath |
|
|
|
print "Copied:", fromPath |
|
|
|
print " to:", toPath |
|
|
|
print " to:", toPath |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
permissions = os.stat(toPath) |
|
|
|
|
|
|
|
if not permissions.st_mode & stat.S_IWRITE: |
|
|
|
|
|
|
|
os.chmod(toPath, permissions.st_mode | stat.S_IWRITE) |
|
|
|
|
|
|
|
|
|
|
|
if not framework.isDylib(): # Copy resources for real frameworks |
|
|
|
if not framework.isDylib(): # Copy resources for real frameworks |
|
|
|
fromResourcesDir = framework.sourceResourcesDirectory |
|
|
|
fromResourcesDir = framework.sourceResourcesDirectory |
|
|
|
if os.path.exists(fromResourcesDir): |
|
|
|
if os.path.exists(fromResourcesDir): |
|
|
|