From b77d86c93175974ddcea786f5618c51308376601 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 25 Jun 2023 11:55:27 +0200 Subject: [PATCH] Call runScript() with unicorn only when there *is* a graphic interface. --- unicorn/src/cgt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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