PluginManager/PluginInstallDialog.py

changeset 4386
510090f78d0a
parent 4378
d8f81e864816
child 4563
881340f4bd0c
child 4632
ca310db386ed
diff -r 599681bf149a -r 510090f78d0a PluginManager/PluginInstallDialog.py
--- a/PluginManager/PluginInstallDialog.py	Sun Aug 23 11:37:17 2015 +0200
+++ b/PluginManager/PluginInstallDialog.py	Sun Aug 23 11:43:34 2015 +0200
@@ -469,10 +469,15 @@
         
         # now compile the plugins
         if doCompile:
-            compileall.compile_dir(
-                os.path.join(destination, packageName), quiet=True)
-            compileall.compile_file(
-                os.path.join(destination, pluginFileName), quiet=True)
+            dir = os.path.join(destination, packageName)
+            files = os.path.join(destination, pluginFileName)
+            if sys.version_info[0] == 2:
+                dir = dir.encode(sys.getfilesystemencoding())
+                files = files.encode(sys.getfilesystemencoding())
+            os.path.join_unicode = False
+            compileall.compile_dir(dir, quiet=True)
+            compileall.compile_file(files, quiet=True)
+            os.path.join_unicode = True
         
         if not self.__external:
             # now load and activate the plugin

eric ide

mercurial