Answers for "tell python read directory in string"

0

python find directory of file

import os
  
print('File name :    ', os.path.basename(__file__))
print('Directory Name:     ', os.path.dirname(__file__))
Posted by: Guest on January-10-2022

Code answers related to "tell python read directory in string"

Python Answers by Framework

Browse Popular Code Answers by Language