Skip to content

Tag: filepath

absolute path for file not working properly python

basically, I’m trying to store the full path for a file in a list but for some reason os.path.abspath() doesnt seem to work properly but my output seems to output this : ‘C:Users******Documentsfolderexample’ the problem is that it should be : ‘C:Users******DocumentsfolderTRACKERexample…

Python get filepath

I’m trying to create a simple script to copy the filepath of a selected file (in windows explorer) to the clipboard in python. I’ve been looking at pyperclip and tkinter but I’m unsure how exactly to proceed. The askopenfilename in tkinter seems promising, but I’d like to select the fi…

Python string format

I have defined the string variable I need to use this variable in another string like I tried adding the rf option like this But it’s printing only until c:/program, white spaces are neglected. Is there any way to use entire path in Bashcmd and can’t remove spaces in directory path because many system share s…