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.mar...@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. -- https://mail.python.org/mailman/listinfo/python-list