diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-06-23 10:58:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-23 10:58:16 +0200 |
| commit | 7a856a77e4d36a077cb1a5a1c50831463a6692a0 (patch) | |
| tree | 05557c9609ab2c7ea37de161bfa2707804fd1e72 /lib/inx/utils.py | |
| parent | ca07e28effeb7c097e7d99ef8ef925fd204184e0 (diff) | |
wxpythonify about extension (#3007)
Diffstat (limited to 'lib/inx/utils.py')
| -rwxr-xr-x | lib/inx/utils.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/inx/utils.py b/lib/inx/utils.py index 31da518e..9168f2a2 100755 --- a/lib/inx/utils.py +++ b/lib/inx/utils.py @@ -12,7 +12,6 @@ from jinja2 import Environment, FileSystemLoader _top_path = dirname(dirname(dirname(os.path.realpath(__file__)))) inx_path = os.path.join(_top_path, "inx") template_path = os.path.join(_top_path, "templates") -version_path = _top_path def build_environment(): @@ -22,29 +21,18 @@ def build_environment(): extensions=['jinja2.ext.i18n'] ) - with open(os.path.join(version_path, 'LICENSE'), 'r') as license: - env.globals["inkstitch_license"] = "".join(license.readlines()) - if "BUILD" in os.environ: # building a ZIP release, with inkstitch packaged as a binary - # About extension: add version information - with open(os.path.join(version_path, 'VERSION'), 'r') as version: - env.globals["inkstitch_version"] = "%s" % version.readline() # Command tag and icons path if sys.platform == "win32": env.globals["command_tag"] = '<command location="inx">../bin/inkstitch.exe</command>' - env.globals["image_path"] = '../bin/icons/' elif sys.platform == "darwin": env.globals["command_tag"] = '<command location="inx">../../MacOS/inkstitch</command>' - env.globals["image_path"] = '../../Resources/icons/' else: env.globals["command_tag"] = '<command location="inx">../bin/inkstitch</command>' - env.globals["image_path"] = '../bin/icons/' else: # user is running inkstitch.py directly as a developer env.globals["command_tag"] = '<command location="inx" interpreter="python">../inkstitch.py</command>' - env.globals["image_path"] = '../icons/' - env.globals["inkstitch_version"] = "Manual Install" return env |
