1. Delete "Def" line. You don't need it. 2. Use Edit menu of Spyder to Unindent all the lines. 3. import the system library sys 4. sys.argv is a list of the filenames following the program name.
Would you like to get the python path, e.g. when running unittest? When the copy python path command is executed, it copies the python dotted path to the clipboard. It also works with context menus.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results