From 7a856a77e4d36a077cb1a5a1c50831463a6692a0 Mon Sep 17 00:00:00 2001
From: Kaalleen <36401965+kaalleen@users.noreply.github.com>
Date: Sun, 23 Jun 2024 10:58:16 +0200
Subject: wxpythonify about extension (#3007)
---
lib/inx/generate.py | 2 --
lib/inx/info.py | 14 --------------
lib/inx/utils.py | 12 ------------
3 files changed, 28 deletions(-)
delete mode 100755 lib/inx/info.py
(limited to 'lib/inx')
diff --git a/lib/inx/generate.py b/lib/inx/generate.py
index 47ca3b6d..7cb59185 100644
--- a/lib/inx/generate.py
+++ b/lib/inx/generate.py
@@ -3,7 +3,6 @@
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
-from .info import generate_info_inx_files
from .extensions import generate_extension_inx_files
from .inputs import generate_input_inx_files
from .outputs import generate_output_inx_files
@@ -32,4 +31,3 @@ def generate_inx_files(alter=None):
generate_input_inx_files(alter_data)
generate_output_inx_files(alter_data)
generate_extension_inx_files(alter_data)
- generate_info_inx_files(alter_data)
diff --git a/lib/inx/info.py b/lib/inx/info.py
deleted file mode 100755
index dc80c3eb..00000000
--- a/lib/inx/info.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# Authors: see git history
-#
-# Copyright (c) 2010 Authors
-# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
-
-from .utils import build_environment, write_inx_file
-
-
-def generate_info_inx_files(alter_data):
- env = build_environment()
- info_inx_files = ['about', 'embroider']
- for info in info_inx_files:
- template = env.get_template(f'{info}.xml')
- write_inx_file(info, template.render(alter_data))
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"] = '../bin/inkstitch.exe'
- env.globals["image_path"] = '../bin/icons/'
elif sys.platform == "darwin":
env.globals["command_tag"] = '../../MacOS/inkstitch'
- env.globals["image_path"] = '../../Resources/icons/'
else:
env.globals["command_tag"] = '../bin/inkstitch'
- env.globals["image_path"] = '../bin/icons/'
else:
# user is running inkstitch.py directly as a developer
env.globals["command_tag"] = '../inkstitch.py'
- env.globals["image_path"] = '../icons/'
- env.globals["inkstitch_version"] = "Manual Install"
return env
--
cgit v1.2.3