howto obtain directory where current (running) py-file is placed?

Stebanoid Stebanoid at gmail.com
Fri Jun 8 03:37:13 EDT 2007


On 7    , 10:39, dmitrey <open... at ukr.net> wrote:
> Hi all,
> I guess this question was asked many times before, but I don't know
> keywords for web search.
>
> Thank you in advance, D.

import sys
file_name = sys.argv[0]

????????????
this?




More information about the Python-list mailing list