mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
root for launcher in avalon_apps is not parsed from arguments
This commit is contained in:
parent
4b977bcea2
commit
a48af95ffe
1 changed files with 1 additions and 9 deletions
|
|
@ -40,15 +40,7 @@ class AvalonApps:
|
|||
def show_launcher(self):
|
||||
# if app_launcher don't exist create it/otherwise only show main window
|
||||
if self.app_launcher is None:
|
||||
parser = argparse.ArgumentParser()
|
||||
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)
|
||||
root = os.path.realpath(os.environ["AVALON_PROJECTS"])
|
||||
io.install()
|
||||
APP_PATH = launcher_lib.resource("qml", "main.qml")
|
||||
self.app_launcher = launcher_widget.Launcher(root, APP_PATH)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue