calling Python script from another Python script (Windows, multiple installation problem)
Martin Landa
landa.martin at gmail.com
Wed Mar 26 09:11:15 EDT 2014
Dne středa, 26. března 2014 13:54:02 UTC+1 Chris Angelico napsal(a):
> On Wed, Mar 26, 2014 at 11:49 PM, Martin Landa <landa.martin at gmail.com> wrote:
>
> > # get full path including file extension for scripts
>
> > fcmd = get_real_command(args[0])
this function returns a full path including file extension for scripts. If 'args[0]' is a binary file in the path, it returns 'args[0]'. If 'args[0]' is detected as a script (it finds in the search path file with such name and given extension, eg. `py`) it returns full path to the file, /path/to/file/args[0].py.
More information about the Python-list
mailing list