| 620 | p.unlink() |
| 621 | |
| 622 | def copyQtPlugins(paths): |
| 623 | import shutil |
| 624 | from PySide2 import QtCore |
| 625 | basePath = QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath) |
| 626 | basePath = basePath.replace('/', '\\') |
| 627 | destBase = os.getcwd() + '\\' + OUT_DIR |
| 628 | for elem in paths: |
| 629 | elemDir, elemName = os.path.split(elem) |
| 630 | source = basePath + '\\' + elem |
| 631 | dest = destBase + '\\' + elem |
| 632 | destDir = destBase + '\\' + elemDir |
| 633 | os.makedirs(destDir, exist_ok=True) |
| 634 | shutil.copy(source, dest) |
| 635 | |
| 636 | class build_installer(py2exe): |
| 637 | def run(self): |