tree3po commited on
Commit
aacc3ae
·
verified ·
1 Parent(s): 5204e73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
- import pprint
 
3
  os.environ["HYDRA_FULL_ERROR"] = "1"
4
  os.environ["PATH"] += f'{os.getcwd}/Kinetix'
5
  # Get the list of user's
@@ -8,13 +9,7 @@ env_var = os.environ
8
  # Print the list of user's
9
  print("User's Environment variable:")
10
  pprint.pprint(dict(env_var), width = 1)
11
-
12
- #os.system(f"""python kinetix/editor.py --config-path my_configs/ --config-name my_config""")
13
- os.system(f"""cd Kinetix && python kinetix/editor.py --config-path ../configs/ --config-name editor""")
14
-
15
- '''os.system(f"""cd Kinetix && pip install -e . &&
16
- pre-commit install &&
17
- export PATH=$PATH:{os.getcwd()}/Kinetix/kinetix &&
18
- cd {os.getcwd()} && python {os.getcwd()}/Kinetix/kinetix/editor.py""")
19
- #os.system(f"export PATH=$PATH:{os.getcwd()}/Kinetix/kinetix")
20
- #os.system("cd Kinetix/kinetix && python editor.py")'''
 
1
  import os
2
+ import pprint
3
+ import asyncio
4
  os.environ["HYDRA_FULL_ERROR"] = "1"
5
  os.environ["PATH"] += f'{os.getcwd}/Kinetix'
6
  # Get the list of user's
 
9
  # Print the list of user's
10
  print("User's Environment variable:")
11
  pprint.pprint(dict(env_var), width = 1)
12
+ async def main()
13
+ #os.system(f"""python kinetix/editor.py --config-path my_configs/ --config-name my_config""")
14
+ os.system(f"""cd Kinetix && python kinetix/editor.py --config-path ../configs/ --config-name editor""")
15
+ asyncio.run(main())