I'm trying to make a python script that iterates over all files in the current directory and does stuff to them. I just have a button that calls python "C:\Users\Kuro\Downloads\script.py" {sourcepath$} and then the script just performs an os.walk over it, for root, dirs, files in os.walk(sys.argv[1]):. Issue is, if the current directory has a space in the name, like \New folder, the python script errors out. When I run this normally from the command line I get no issues, so I don't know what's going on. I don't know what the error is because the execution window closes immediately.