Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Find path to the given file using Python

import os
 
print('Absolute path of file:     ',
      os.path.abspath(__file__))
print('Absolute directoryname: ',
      os.path.dirname(os.path.abspath(__file__)))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Find #path #file #Python
ADD COMMENT
Topic
Name
4+5 =