diff --git a/.gitignore b/.gitignore index 57dc50a9..830a409a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /deploy/ *.spec *.egg-info +setup.iss # Documentation /docs/build/ diff --git a/make_windows.py b/make_windows.py index 27e8c112..cc75f519 100644 --- a/make_windows.py +++ b/make_windows.py @@ -14,7 +14,6 @@ install all dependencies needed for runing the build, and for running novelWriter itself. """ -import nw import os import sys import getopt @@ -177,6 +176,7 @@ if makeSetup: with open(os.path.join("setup", "win_setup.iss"), mode="r") as inFile: issData = inFile.read() + import nw # noqa: E402 issData = issData.replace(r"%%version%%", nw.__version__) issData = issData.replace(r"%%dir%%", os.getcwd())