Horje
python file location path Code Example
python file from path
import os 
dir_path = os.path.dirname(os.path.realpath(__file__))
python file location path
import os

print('getcwd:      ', os.getcwd())
print('__file__:    ', __file__)
Source: note.nkmk.me




Python

Related
Binary Search tree implementation in python Code Example Binary Search tree implementation in python Code Example
csv reader python skip header Code Example csv reader python skip header Code Example
how to get the current year in python Code Example how to get the current year in python Code Example
code to calculate dice score Code Example code to calculate dice score Code Example
how to get input from list in python Code Example how to get input from list in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6