I created a custom command scan
for the windows terminal which executes a python script.
@echo off
python "my_scripts\scan.py"
For initial tests, I have written this fabulous script.
import sys
print(f"The name of the script is: { sys.argv[0] }")
When I type scan
into the shell, as for as I know, this should just print: The name of the script is: scan
.
But instead, the output I am getting is: The name of the script is: my_scripts\scan.py
.
It´s very obvious what the issue is, but I don´t know how to fix this.