diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py index b85233dd..eff8b904 100644 --- a/ext/toolchain/commands1.py +++ b/ext/toolchain/commands1.py @@ -740,8 +740,14 @@ class InternalCommands: shutil.copy(targetDir + "/syntool", bundleBinDir) # Copy all generated plugins to the package - bundlePluginDir = bundleBinDir + "/plugins" - shutil.copytree(targetDir + "/plugins", bundlePluginDir) + bundlePluginDir = bundleBinDir + "plugins" + pluginDir = targetDir + "/plugins" + print "Copying plugins dirtree: " + pluginDir + if os.path.isdir(pluginDir): + print "Copying to: " + bundlePluginDir + shutil.copytree(pluginDir, bundlePluginDir) + else: + print "pluginDir doesn't exist, skipping" self.loadConfig() if not self.macIdentity: