|
|
|
@ -49,7 +49,8 @@ class KiCadPyShell(KiCadEditorNotebookFrame): |
|
|
|
|
|
|
|
# Check if startup script exists |
|
|
|
if not os.path.isfile(self.startup_file): |
|
|
|
# Not, so create a default. |
|
|
|
# Not, so try to create a default. |
|
|
|
try: |
|
|
|
default_startup = open(self.startup_file, 'w') |
|
|
|
# provide the content for the default startup file. |
|
|
|
default_startup.write( |
|
|
|
@ -64,6 +65,8 @@ class KiCadPyShell(KiCadEditorNotebookFrame): |
|
|
|
"# board = pcbnew.GetBoard()\n" + |
|
|
|
"# sch = eeschema.GetSchematic()\n") |
|
|
|
default_startup.close() |
|
|
|
except: |
|
|
|
pass |
|
|
|
|
|
|
|
def _setup(self): |
|
|
|
""" |
|
|
|
|