Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/hal/user_comps/gladevcp.py b/src/hal/user_comps/gladevcp.py
- index 5fc06ae..883e83e 100644
- --- a/src/hal/user_comps/gladevcp.py
- +++ b/src/hal/user_comps/gladevcp.py
- @@ -274,7 +274,10 @@ def main():
- window.window.maximize()
- if opts.halfile:
- - cmd = ["halcmd", "-f", opts.halfile]
- + if opts.halfile[-4:] == ".tcl":
- + cmd = ["haltcl", opts.halfile]
- + else:
- + cmd = ["halcmd", "-f", opts.halfile]
- res = subprocess.call(cmd, stdout=sys.stdout, stderr=sys.stderr)
- if res:
- print >> sys.stderr, "'%s' exited with %d" %(' '.join(cmd), res)
Advertisement
Add Comment
Please, Sign In to add comment