I am attempting to make a Python testing script module self-contained directory-wise for scalability and maintainability purposes.
I have done some research and haven\'t
path = os.path.dirname(__file__) print(path)
will print the CWD of the file, say C:\Users\Test\Documents\CodeRevamp\Joke
path2 = os.path.dirname(path) print(path2)
will print the Parent directory of of the file: C:\Users\Test\Documents\CodeRevamp