mirror of https://github.com/KLayout/klayout.git
new klayout_console script
This commit is contained in:
parent
87212fdd03
commit
a9419b62f4
|
|
@ -1,2 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
/Applications/klayout.app/Contents/MacOS/klayout -b -r /Applications/klayout.app/Contents/MacOS/start-console.py
|
||||
if [ "$1" != "" ]; then
|
||||
/Applications/klayout.app/Contents/MacOS/klayout $1 -r /Applications/klayout.app/Contents/MacOS/start-console.py
|
||||
else
|
||||
/Applications/klayout.app/Contents/MacOS/klayout -z -r /Applications/klayout.app/Contents/MacOS/start-console.py
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
import readline
|
||||
import code
|
||||
import sys
|
||||
import os
|
||||
pwd = os.getcwd()
|
||||
sys.path.append(pwd)
|
||||
|
||||
variables = globals().copy()
|
||||
variables.update(locals())
|
||||
shell = code.InteractiveConsole(variables)
|
||||
|
|
|
|||
Loading…
Reference in New Issue