I have a python program that receives a file path as an argument.
The problem is, that if the file path has the following chars: "%cd", then it replaces "%cd" with the current directory.
So for example:
python program.py "C:\%af%32%cd%7f.htm"
The sys.argv (in program.py) shows this:
['program.py', 'C:\\%af%32C:\\%7f.htm']
Why is that happening and how can it be solved?
Edit
The problem is that if I put "%cd" in the command line, then in python I get the command line with the current directory string instead the "%cd" chars