subprocess cwd keyword.
Ivan Vinogradov
vinogri at mcmaster.ca
Fri Oct 27 10:42:18 EDT 2006
On 27-Oct-06, at 2:25 AM, Leo Kislov wrote:
>
> Ivan Vinogradov wrote:
>> ...
>>
>> call("core/main") works but uses .. of core for input/output.
>>
>> call("core/main",cwd="core") and call("main",cwd="core") both
>> result in
> [snip exception]
>
> Usually current directory is not in the PATH on UNIX. Try
> call("./main",cwd="core")
>
> -- Leo
Thank you both Leo and Steven.
The solution was indeed calling "main" as "./main" once cwd was changed.
--
Cheers, Ivan.
More information about the Python-list
mailing list