diff --git a/unicorn/src/cgt.py b/unicorn/src/cgt.py index 39493a7e..3c7b22f0 100755 --- a/unicorn/src/cgt.py +++ b/unicorn/src/cgt.py @@ -188,11 +188,11 @@ if __name__ == '__main__': unicorn.setLayerVisible ("text.instance" , False); unicorn.setLayerVisible ("text.component", False); - if options.script: - runScript(options.script,unicorn) - - # Run in command line mode. - if options.script: runScript(options.script,None) + if options.script: + runScript(options.script,unicorn) + else: + # Run in command line mode. + if options.script: runScript(options.script,None) kiteSuccess = True