mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
trigger settings.main in pype commands instead of creating new subprocess
This commit is contained in:
parent
8706f01197
commit
1f59c6be82
1 changed files with 4 additions and 6 deletions
|
|
@ -51,13 +51,11 @@ class PypeCommands:
|
|||
|
||||
@staticmethod
|
||||
def launch_settings_gui(dev):
|
||||
from pype.lib import execute
|
||||
from pype.tools import settings
|
||||
|
||||
args = [sys.executable, "-m", "pype.tools.settings"]
|
||||
if dev:
|
||||
args.append("--develop")
|
||||
return_code = execute(args)
|
||||
return return_code
|
||||
# TODO change argument options to allow enum of user roles
|
||||
user_role = "developer"
|
||||
settings.main(user_role)
|
||||
|
||||
def launch_eventservercli(self, args):
|
||||
from pype.modules import ftrack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue