I've got a python script that selectively renames files in the current working directory into a certain format. I could just copy this script into each folder whenever I need to rename files but this seems cumbersome. I would like to put the script in my python scripts folder (which I've included in my path environment variable so that I can run the script from any directory) and then just call the script from the command line while the command line is navigated to directory with the files to be renamed. I could manually pass a command line argument with the path to the directory containing the files to be renamed but again this seems cumbersome and I would like to try to get around it. The command line should look like the following:
C:\Users\nheme\...\folder_that_contains_files_to_be_renamed> rename.py
Essentially, I need a way to pass the current directory of the command line to the python script. Is this possible?