Enable P&R command line options in graphic mode

This commit is contained in:
Gabriel Gouvine 2023-06-04 13:18:20 +02:00
parent 26184c5016
commit 2ea099afec
1 changed files with 41 additions and 42 deletions

View File

@ -194,14 +194,6 @@ if __name__ == '__main__':
if options.script: if options.script:
runScript(options.script,unicorn) runScript(options.script,unicorn)
setCgtBanner(unicorn.getBanner())
#print( unicorn.getBanner() )
#print( credits() )
if cell: unicorn.setCell(cell)
unicorn.show()
ha.qtExec()
else:
# Run in command line mode. # Run in command line mode.
if options.script: runScript(options.script,None) if options.script: runScript(options.script,None)
@ -238,6 +230,13 @@ if __name__ == '__main__':
views |= CRL.Catalog.State.Logical views |= CRL.Catalog.State.Logical
af.saveCell(cell, views) af.saveCell(cell, views)
if not options.textMode:
setCgtBanner(unicorn.getBanner())
if cell: unicorn.setCell(cell)
unicorn.show()
ha.qtExec()
else:
sys.exit(not kiteSuccess) sys.exit(not kiteSuccess)
except Exception as e: except Exception as e: