Created
February 7, 2012 17:00
-
-
Save ongaeshi/1760738 to your computer and use it in GitHub Desktop.
TitaniumStudio build:1.0.8 で突然コンパイルが通らなくなったら。(iPhoneアプリ作成中に発生)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/compiler.py | |
# 162行目付近 | |
def softlink_resources(source,target,use_ignoreDirs=True): | |
if not os.path.exists(target): | |
os.makedirs(target) | |
for file in os.listdir(source): | |
if (use_ignoreDirs and (file in ignoreDirs)) or (file in ignoreFiles): | |
continue | |
from_ = os.path.join(source, file) | |
to_ = os.path.join(target, file) | |
if os.path.isdir(from_): | |
print "[DEBUG] creating: %s" % (to_) | |
softlink_resources(from_,to_,False) | |
else: | |
print "[DEBUG] linking: %s to %s" % (from_,to_) | |
if os.path.exists(to_): | |
if os.path.islink(to_): | |
os.remove(to_) | |
os.symlink(from_, to_) | |
else: | |
+ os.remove(to_) # 動いたら再度コメントアウトすること | |
os.symlink(from_, to_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment