Commit 45768110 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[Python] __main__: fix detection of --no-viewer argument

parent c2aa8321
......@@ -46,8 +46,7 @@ process_server = subprocess.Popen("hpp-rbprm-server",
atexit.register(process_server.kill)
# do the same for the viewer, exept if --no-viewer flag is set
disable_viewer = args.no_viewer
if disable_viewer is None:
if not args.no_viewer:
subprocess.run(["killall", "gepetto-gui"])
process_viewer = subprocess.Popen("gepetto-gui",
stdout=subprocess.PIPE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment