[Gambas-user] SHELL command with python does not execute!

Doriano Blengino doriano.blengino at ...1909...
Thu Feb 11 12:42:56 CET 2010


Fabien Bodard ha scritto:
>
>>>
>>> I am using the following code for the creation of a table in a Mysql DB:
>>>
>>>
>>> SHELL"python
>>>  /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR
>>>  THEN
>>>         Message.Error(DConv(Error.Text))
>>>       ENDIF
>>>
>>> The command works perfectly and it creates the table.
>>>
>>> When I use the same command on a second project it does not execute!
>>> With:
>>>       python dimiourgiaTableMYSQLmePython1.py it does !
>>> (from terminal)
>>>
>>> Any ideas?
>>>       
A reason could be that the second command is more slow than the first, 
and you don't WAIT for it to finish.
Put a WAIT clause in the SHELL statement and see if it works.

Regards,
Doriano





More information about the User mailing list