Call runScript() with unicorn only when there *is* a graphic interface.

This commit is contained in:
Jean-Paul Chaput 2023-06-25 11:55:27 +02:00
parent d019c6aab5
commit b77d86c931
1 changed files with 5 additions and 5 deletions

View File

@ -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