MCPcopy Create free account
hub / github.com/Syncplay/syncplay / copyQtPlugins

Function copyQtPlugins

buildPy2exe.py:622–634  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

620 p.unlink()
621
622def 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
636class build_installer(py2exe):
637 def run(self):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected