Answers for "getting the current executing file's path python"

0

getting the current executing file's path python

import inspect, os.path

filename = inspect.getframeinfo(inspect.currentframe()).filename
path     = os.path.dirname(os.path.abspath(filename))
Posted by: Guest on July-22-2021

Code answers related to "getting the current executing file's path python"

Python Answers by Framework

Browse Popular Code Answers by Language