- changed status to resolved
running script from command line
Issue #315
resolved
Run c:\Temp\Winpython\WinPython Powershell Prompt.exe
then python ..\FlatCAM\jpcgt-flatcam-f71e6992a1cd\FlatCAM.py --shellfile=C:/Temp/TestBoard_v2/FlatCAM_Script_08.tcl
FlatCAM opens and gives an error
ERROR: 'App' object has no attribute 'all_objects_list'
Python traceback: <class 'AttributeError'>
File "C:TempWinpython32-3.7.4.0FlatCAMjpcgt-flatcam-f71e6992a1cdObjectCollection.py", line 619, in delete_all > self.app.all_objects_list.clear()
File "C:TempWinpython32-3.7.4.0FlatCAMjpcgt-flatcam-f71e6992a1cdFlatCAMApp.py", line 7632, in on_file_new > self.collection.delete_all()
File "C:TempWinpython32-3.7.4.0FlatCAMjpcgt-flatcam-f71e6992a1cd clCommandsTclCommandNew.py", line 39, in execute > self.app.on_file_new(cli=True)
File "C:TempWinpython32-3.7.4.0FlatCAMjpcgt-flatcam-f71e6992a1cd clCommandsTclCommand.py", line 281, in execute_wrapper > return self.execute(args, unnamed_args)
while executing
"new
The same script works from from the Run Script {}
button
Many Thanks
Comments (1)
-
- Log in to comment
#315where a script run with the --shellfile argument crashed the program if it contained a TclCommand New→ <<cset bd0c1da00730>>