trigger settings.main in pype commands instead of creating new subprocess

This commit is contained in:
iLLiCiTiT 2020-12-18 17:10:33 +01:00
parent 8706f01197
commit 1f59c6be82

View file

@ -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