Added temp iss file to gitignore, and fiex a bug in windows make

This commit is contained in:
Veronica K. B. Olsen
2020-10-17 01:30:13 +02:00
parent 115cef3ffb
commit 0665b9b032
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@
/deploy/ /deploy/
*.spec *.spec
*.egg-info *.egg-info
setup.iss
# Documentation # Documentation
/docs/build/ /docs/build/
+1 -1
View File
@@ -14,7 +14,6 @@ install all dependencies needed for runing the build, and for running
novelWriter itself. novelWriter itself.
""" """
import nw
import os import os
import sys import sys
import getopt import getopt
@@ -177,6 +176,7 @@ if makeSetup:
with open(os.path.join("setup", "win_setup.iss"), mode="r") as inFile: with open(os.path.join("setup", "win_setup.iss"), mode="r") as inFile:
issData = inFile.read() issData = inFile.read()
import nw # noqa: E402
issData = issData.replace(r"%%version%%", nw.__version__) issData = issData.replace(r"%%version%%", nw.__version__)
issData = issData.replace(r"%%dir%%", os.getcwd()) issData = issData.replace(r"%%dir%%", os.getcwd())