Trying to execute a python script from a shell and keep ending up with errors:
Exception NilObjectException
self MyWindow.MyWindow
shell1 Nil
Dim shell1 As Shell
'shell1.Execute("python /home/pi/Desktop/Upload.py aa bb cc")
The aa bb and cc are separated with a space and are the three variables I am trying to pass to the python script.
I have captured the command in a msgBox and pasted to the Terminal and it runs fine so there is something in the format of the shell that isn’t working. The python script is very basic and it works.
Pasting the results of this message box into the Terminal works:
msgBox("python /home/pi/Desktop/Upload.py aa bb cc")
I have messed around with "\ " in the spaces from this thread but with no success.
link text
Any help would again be appreciated.