M
Michael Malinowski
Is there a way to read the directory that the currently running python file
is located in?
Cheers
Mike.
is located in?
Cheers
Mike.
Michael said:Is there a way to read the directory that the currently running python file
is located in?
anders said:in os module there is many funktion/methods to extract this information
to ask the path to the current running pythonprogram you can do likes
this
----- CUT-----------
import os
print os.getcwd()
----- CUT ------
// Anders
Michael Malinowski skrev:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.