#!/usr/bin/env python #...for the path. import os #...for getting file information. import inspect # Get the path of the current directory path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) if __name__ == "__main__": print("*===========*") print("* test01.py *") print("*===========*") print("") print("* Current path is '%s'" % (path)) print("")