mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merged in hotfix/launcher_in_pype2 (pull request #134)
Fixing launcher in pype avalon_apps module
This commit is contained in:
commit
17123dd89b
1 changed files with 1 additions and 9 deletions
|
|
@ -40,15 +40,7 @@ class AvalonApps:
|
||||||
def show_launcher(self):
|
def show_launcher(self):
|
||||||
# if app_launcher don't exist create it/otherwise only show main window
|
# if app_launcher don't exist create it/otherwise only show main window
|
||||||
if self.app_launcher is None:
|
if self.app_launcher is None:
|
||||||
parser = argparse.ArgumentParser()
|
root = os.path.realpath(os.environ["AVALON_PROJECTS"])
|
||||||
parser.add_argument("--demo", action="store_true")
|
|
||||||
parser.add_argument(
|
|
||||||
"--root", default=os.environ["AVALON_PROJECTS"]
|
|
||||||
)
|
|
||||||
kwargs = parser.parse_args()
|
|
||||||
|
|
||||||
root = kwargs.root
|
|
||||||
root = os.path.realpath(root)
|
|
||||||
io.install()
|
io.install()
|
||||||
APP_PATH = launcher_lib.resource("qml", "main.qml")
|
APP_PATH = launcher_lib.resource("qml", "main.qml")
|
||||||
self.app_launcher = launcher_widget.Launcher(root, APP_PATH)
|
self.app_launcher = launcher_widget.Launcher(root, APP_PATH)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue