Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ The current version allows to install:

![TEKSI Module Management Tool (TMMT)](docs/en/images/tmmt_tww_2025_0_2_success.jpg?raw=true)

Here you can get an impression how it works:
Here you can get an impression how it works:

[TMMT is LIVE for TEKSI Modules installation](https://github.com/teksi/TMMT/discussions/34)

The generic module is developped here:
The generic module is developped here:
https://github.com/opengisch/oqtopus
TMMT is a branding of oQtopus meant to ease the life of TEKSI providers.

Expand Down
7 changes: 5 additions & 2 deletions teksi_module_management_tool/gui/about_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# ---------------------------------------------------------------------



import os

from qgis.PyQt.QtCore import QSettings
Expand Down Expand Up @@ -67,7 +66,11 @@ def __init__(self, parent=None):
tmmt_libs = os.path.join(TMMTPluginUtils.plugin_root_path(), "libs")
oqtopus_version = _dist_info_version(tmmt_libs, "oqtopus") or "?"
lib_versions = [
{"name": "oqtopus", "version": oqtopus_version, "path": os.path.join(tmmt_libs, "oqtopus")},
{
"name": "oqtopus",
"version": oqtopus_version,
"path": os.path.join(tmmt_libs, "oqtopus"),
},
get_library_version("pum"),
get_library_version("pgserviceparser"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ def __init__(self, iface):
)

settings = QgsSettings()
if settings.value(f"plugins/{TMMTPluginUtils.PLUGIN_ID}/github-token") is None and settings.value("plugins/oqtopus/github-token") is not None:
settings.setValue(f"plugins/{TMMTPluginUtils.PLUGIN_ID}/github-token", settings.value("plugins/oqtopus/github-token"))
if (
settings.value(f"plugins/{TMMTPluginUtils.PLUGIN_ID}/github-token") is None
and settings.value("plugins/oqtopus/github-token") is not None
):
settings.setValue(
f"plugins/{TMMTPluginUtils.PLUGIN_ID}/github-token",
settings.value("plugins/oqtopus/github-token"),
)

self.__version__ = TMMTPluginUtils.get_plugin_version()
self.main_menu_name = self.tr(f"&{TMMTPluginUtils.PLUGIN_NAME}")
Expand Down
3 changes: 2 additions & 1 deletion teksi_module_management_tool/utils/tmmt_plugin_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def plugin_temp_path():
plugin_basename = TMMTPluginUtils.plugin_root_path().split(os.sep)[-1]

plugin_temp_dir = os.path.join(
QStandardPaths.writableLocation(QStandardPaths.TempLocation), plugin_basename
QStandardPaths.writableLocation(QStandardPaths.StandardLocation.TempLocation),
plugin_basename,
)
if not os.path.exists(plugin_temp_dir):
os.makedirs(plugin_temp_dir)
Expand Down