Fix a couple of setup issues and add a note to the docs about updating python

This commit is contained in:
Veronica K. B. Olsen
2021-02-03 17:36:25 +01:00
parent 6032f52798
commit 515d421dc0
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -686,7 +686,7 @@ def winInstall():
"""Will attempt to install icons and make a launcher for Windows.
"""
import winreg
from nw import __version__, __hexversion__
from nw import __version__, __status__
try:
import win32com.client
except ImportError:
@@ -702,7 +702,7 @@ def winInstall():
print("===============")
print("")
nwTesting = not __hexversion__.endswith("f0")
nwTesting = not __status__.lower().startswith("stable")
wShell = win32com.client.Dispatch("WScript.Shell")
if nwTesting:
@@ -780,7 +780,7 @@ def winInstall():
winreg.SetValueEx(regKey, kName, 0, winreg.REG_SZ, kVal)
winreg.CloseKey(regKey)
mimeIcon = os.path.join(targetDir, "assets", "icons", "x-novelwriter-project.ico")
mimeIcon = os.path.join(targetDir, "nw", "assets", "icons", "x-novelwriter-project.ico")
mimeExec = '"%s" "%s" "%%1"' % (pythonExe, targetPy)
try: