Skip to content

Commit

Permalink
evc: better ws invokation
Browse files Browse the repository at this point in the history
  • Loading branch information
dendenxu committed Apr 7, 2024
1 parent a4f3eb9 commit 9a3a725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion easyvolcap/scripts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
host='10.76.5.252',
port=1024,
)
args = dotdict(vars(build_parser(args, description=__doc__).parse_args(our_args)))
args = dotdict(vars(build_parser(args, description=__doc__).parse_known_args(our_args)[0]))

from easyvolcap.engine import cfg
from easyvolcap.engine.registry import call_from_cfg
Expand Down
5 changes: 5 additions & 0 deletions easyvolcap/scripts/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def gui_entrypoint():


def ws_entrypoint():
# Directly run GUI without external requirements
if '-c' not in sys.argv:
sys.argv.insert(1, '-c')
sys.argv.insert(2, 'configs/base.yaml')

args = sys.argv
args = ['python -q -X faulthandler easyvolcap/scripts/client.py'] + args[1:]
subprocess.call(' '.join(args), shell=True)

0 comments on commit 9a3a725

Please sign in to comment.