Make sure the novelWriter.pyw file exists on win-install

This commit is contained in:
Veronica K. B. Olsen committed 2021-03-27 22:12:33 +01:00
1 parent 2f269c3e17
commit a2c48492ee
2 files changed
+4

No files matched your search

+1
View File
@@ -7,6 +7,7 @@
*.egg-info
setup.iss
novelwriter.desktop
novelWriter.pyw
i18n/*.qm
i18n/*.qph
+3
View File
@@ -695,6 +695,9 @@ def winInstall():
targetPy = os.path.join(targetDir, "novelWriter.pyw")
targetIcon = os.path.join(targetDir, "nw", "assets", "icons", "novelwriter.ico")
if not os.path.isfile(targetPy):
shutil.copy2(os.path.join(targetDir, "novelWriter.py"), targetPy)
print("Collecting Info ...")
print("Desktop Folder: %s" % desktopDir)
print("Start Menu Folder: %s" % startMenuDir)