Guest User

Untitled

a guest
Apr 3rd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. diff --git a/src/hal/user_comps/gladevcp.py b/src/hal/user_comps/gladevcp.py
  2. index 5fc06ae..883e83e 100644
  3. --- a/src/hal/user_comps/gladevcp.py
  4. +++ b/src/hal/user_comps/gladevcp.py
  5. @@ -274,7 +274,10 @@ def main():
  6. window.window.maximize()
  7.  
  8. if opts.halfile:
  9. - cmd = ["halcmd", "-f", opts.halfile]
  10. + if opts.halfile[-4:] == ".tcl":
  11. + cmd = ["haltcl", opts.halfile]
  12. + else:
  13. + cmd = ["halcmd", "-f", opts.halfile]
  14. res = subprocess.call(cmd, stdout=sys.stdout, stderr=sys.stderr)
  15. if res:
  16. print >> sys.stderr, "'%s' exited with %d" %(' '.join(cmd), res)
Advertisement
Add Comment
Please, Sign In to add comment