Global: custom location for OP local versions (#4673)

* OP-5221 - updated settings for custom location of artist zip folder

* OP-5221 - updated igniter for custom location of artist zip folder

Introduced new function
Updated data_dir only after access to Mongo (DB)

* OP-5221 - pushed resolving of local folder to OpenPypeVersion

Logic in OpenPypeVersion is used even in openpype_version.py

* OP-5221 - updates after review

* OP-5221 - fix paths should be single paths

* OP-5221 - refactor to cls

* OP-5221 - refactor

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-5221 - fix defaults for single paths

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-5221 - remove unwanted line

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-5221 - update look of Settings

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2023-04-03 11:12:02 +02:00 committed by Jakub Trllo
parent 66c4522f9c
commit e42aebc1f2
8 changed files with 97 additions and 11 deletions

View file

@ -15,6 +15,11 @@
"darwin": [],
"linux": []
},
"local_openpype_path": {
"windows": "",
"darwin": "",
"linux": ""
},
"production_version": "",
"staging_version": "",
"version_check_interval": 5

View file

@ -128,8 +128,12 @@
{
"type": "collapsible-wrap",
"label": "OpenPype deployment control",
"collapsible": false,
"collapsible": true,
"children": [
{
"type": "label",
"label": "Define location accessible by artist machine to check for zip updates with Openpype code."
},
{
"type": "path",
"key": "openpype_path",
@ -138,6 +142,18 @@
"multipath": true,
"require_restart": true
},
{
"type": "label",
"label": "Define custom location for artist machine where to unzip versions of Openpype code. By default it is in user app data folder."
},
{
"type": "path",
"key": "local_openpype_path",
"label": "Custom Local Versions Folder",
"multiplatform": true,
"multipath": false,
"require_restart": true
},
{
"type": "splitter"
},

View file

@ -189,6 +189,7 @@ class SettingsStateInfo:
class SettingsHandler(object):
global_keys = {
"openpype_path",
"local_openpype_path",
"admin_password",
"log_to_server",
"disk_mapping",