eric6/PluginManager/PluginInstallDialog.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
475 475
476 # now compile the plugins 476 # now compile the plugins
477 if doCompile: 477 if doCompile:
478 dirName = os.path.join(destination, packageName) 478 dirName = os.path.join(destination, packageName)
479 files = os.path.join(destination, pluginFileName) 479 files = os.path.join(destination, pluginFileName)
480 if sys.version_info[0] == 2:
481 dirName = dirName.encode(sys.getfilesystemencoding())
482 files = files.encode(sys.getfilesystemencoding())
483 os.path.join_unicode = False 480 os.path.join_unicode = False
484 compileall.compile_dir(dirName, quiet=True) 481 compileall.compile_dir(dirName, quiet=True)
485 compileall.compile_file(files, quiet=True) 482 compileall.compile_file(files, quiet=True)
486 os.path.join_unicode = True 483 os.path.join_unicode = True
487 484

eric ide

mercurial