-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deploy users with hhnk * fix populate laad lagen * update hrt version * update deps versions * update version
- Loading branch information
1 parent
58a632e
commit 689b590
Showing
5 changed files
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
name=HHNK 3Di toolbox | ||
qgisMinimumVersion=3.0 | ||
description=Plugin voor watersysteemanalyse met 3Di | ||
version=2023.3 | ||
version=2023.3.2 | ||
author=Wietse van Gerwen, HHNK | ||
[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
# %% | ||
from deploy_plugin_across_users import deploy, get_users | ||
from pathlib import Path | ||
import os | ||
|
||
# PLUGINS_DIR = r"c://Users//{user}//AppData//Roaming//3Di//QGIS3//profiles//default//python//plugins" # noqa | ||
# plugins_dir = PLUGINS_DIR | ||
PLUGINS_DIR = r"c://Users//{user}//AppData//Roaming//3Di//QGIS3//profiles//default//python//plugins" # noqa | ||
plugins_dir = PLUGINS_DIR | ||
# from pathlib import Path | ||
# users = get_users() | ||
# for user in users: | ||
# print(f"checking user '{user}'") | ||
# user_plugins_dir = Path(plugins_dir.format(user=user)) | ||
# if user_plugins_dir.parent.is_dir(): | ||
# print(user) | ||
users = get_users() | ||
|
||
selected_users = [] | ||
for user in users: | ||
try: | ||
print(f"checking user '{user}'") | ||
user_plugins_dir = Path(plugins_dir.format(user=user)) | ||
if user_plugins_dir.parent.is_dir(): | ||
if len([i for i in user_plugins_dir.glob("*hhnk_threedi_plugin")]) == 1: | ||
selected_users.append(user) | ||
except: | ||
pass | ||
|
||
print("\nSelected users:") | ||
print(selected_users) | ||
# %% | ||
deploy(admin_user="wvangerwen", | ||
plugins = ["hhnk_threedi_plugin", "ThreeDiToolbox", "valuetool", "pdokservicesplugin"], | ||
users = [], | ||
plugins = ["hhnk_threedi_plugin", "ThreeDiToolbox"], | ||
users = selected_users, | ||
users_ignored = [], | ||
files_ignored = ["local_settings.py", "api_key.txt"], | ||
) | ||
|
||
|
||
# %% |