Answers for "where scripts python file is located"

2

python get script path

os.getcwd()
Posted by: Guest on June-03-2020
-3

get pyhton file path python

import os

os.path.realpath(__file__)
Posted by: Guest on October-13-2020

Code answers related to "where scripts python file is located"

Python Answers by Framework

Browse Popular Code Answers by Language