Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Prepare_resources-mac.py for python3 for new macOs 12.3 update #855

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions Examples/IPlugSideChain/scripts/prepare_resources-mac.py
Expand Up @@ -30,29 +30,29 @@ def main():
CSResourcesFileMapped = True
LSMinimumSystemVersion = xcconfig['DEPLOYMENT_TARGET']

print "Copying resources ..."
print("Copying resources ...")

if config['PLUG_SHARED_RESOURCES']:
dst = os.path.expanduser("~") + "/Music/" + config['BUNDLE_NAME'] + "/Resources"
else:
dst = os.environ["TARGET_BUILD_DIR"] + os.environ["UNLOCALIZED_RESOURCES_FOLDER_PATH"]

if os.path.exists(dst) == False:
os.makedirs(dst + "/", 0755 )
os.makedirs(dst + "/", 0o755 )

if os.path.exists(projectpath + "/resources/img/"):
imgs = os.listdir(projectpath + "/resources/img/")
for img in imgs:
print "copying " + img + " to " + dst
print("copying " + img + " to " + dst)
shutil.copy(projectpath + "/resources/img/" + img, dst)

if os.path.exists(projectpath + "/resources/fonts/"):
fonts = os.listdir(projectpath + "/resources/fonts/")
for font in fonts:
print "copying " + font + " to " + dst
print("copying " + font + " to " + dst)
shutil.copy(projectpath + "/resources/fonts/" + font, dst)

print "Processing Info.plist files..."
print("Processing Info.plist files...")

# VST3

Expand Down