I'm trying to have a Python file that can operate through both terminal and IDEs in order to run tests. My goal is to have it find and manipulate files within other parts of my directory by entering a file name, however it won't reach outside its operating directory.
I've used os.py
but it has the same results
dir_path = str(Path("261Calcs.py").parent.absolute())
print(dir_path)
Currently it just has the pathway show my user whenever acting in the terminal, and therefore can't access other files within other directories