(Python) Why do I always have to type absolute paths in file functions?
Posted
by Ideka
on Stack Overflow
See other posts from Stack Overflow
or by Ideka
Published on 2010-04-11T00:05:23Z
Indexed on
2010/04/11
0:13 UTC
Read the original article
Hit count: 156
python
|absolute-path
For instance, if I have:
C:\42\main.py
and
C:\42\info.txt
and I want to read info.txt from main.py, I have to input "C:\42\info.txt" instad of just "info.txt".
Is it supposed to be like that?
If not, how can I fix it?
© Stack Overflow or respective owner