The System() API call takes a session_id and if you have previously created an app in that session, uses the working directory of the app you created. Is there any other way to change the working dir for System() commands? asked 14 Feb '11, 15:00 sxalexander |
Just pass multiple commands to a single
Hope that helps! answered 14 Feb '11, 15:55 seanf Thanks! That does solve the issue with system(), is there a way to do something similar with replace_in_file()?
(14 Feb '11, 18:16)
sxalexander
With replace_in_file() you can put the full path to the file you need to edit not change directories, as such. After in the same cmd = """ field you should be able to call replace_in_file() after you've changed to the directory you want.
(14 Feb '11, 18:43)
klynton
|