Call runScript() with unicorn only when there *is* a graphic interface.
This commit is contained in:
parent
d019c6aab5
commit
b77d86c931
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue