Reputation: 29
Which path is used in os.path.isfile(filename) in python. I have file in /home/debian and I have added that path in PYTHONPATH variable still os.path.isfile(filename) returns FALSE.
Upvotes: 0
Views: 1081
Reputation: 10959
If filename
is relative, the current working directory (available with os.getcwd()
) is used.
PYTHONPATH
is only used when importing modules.
Upvotes: 3