I'm writing a Python script to automate installation of UWP-Apps. The script uses Dependencies inside the script directory; my older scripts use this code:
os.chdir(os.path.dirname(sys.argv[0]))
The above code doesn't work on my current script but works fine on older scripts. It shows:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
Researching this topic, I only found talk about running the script from outer/different directory.