Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python relative file path doesnt work

dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, f'relativePathfile.csv')
# filename returns the absolute path
 
PREVIOUS NEXT
Tagged: #python #relative #file #path #doesnt #work
ADD COMMENT
Topic
Name
5+7 =