I have a directory structure like this
projectfolder/fold1/fold2/fold3/script.py
now I give the script.py path as a command line argument to the file that is in
fold1/fold_temp/myfile.txt
So basically I want you to have a path this way
../../fold_temp/myfile.txt >>python somepath/pythonfile.py -input ../../fold_temp/myfile.txt
The problem here is that I can be given the full path or relative path so that I can solve and based on this I would have to create an absolute path.
I already have knowledge of the functions associated with the path.
Question 1
Question 2
Help questions give a partial answer, but I donβt know how to build a full path using the functions provided in them.
source share