0

Title says it all, I've written a script called file.py:

import sys
print(sys.argv)

When running it as python test.py arguments it works, returning successfuly, but when running it as test arguments using the python that's linked on %path%, it doesn't show the arguments, just the file path as argument 0. No problems with the version of python, both are the same version.

What's going on here? Python 3.4.3 on Win7 x64

EDIT: Solved using this

sagiksp
  • 143
  • 1
  • 7
  • Related: http://stackoverflow.com/q/43079413/744178 – jwodder Mar 30 '17 at 20:01
  • @jwodder Thanks, solved it. – sagiksp Mar 30 '17 at 20:13
  • Please consider adding your own answer (as an answer, clicking the "Post Your Answer" button) describing the solution you used. The linked question is also unanswered, so right now they can't be linked as duplicates until one or the other has been solved. (Note that link-only answers, like link-only questions, aren't acceptable here -- we want to have a knowledgebase that's durable even if external links break). – Charles Duffy Mar 30 '17 at 20:17
  • Used a link found in one of the comments, x-posted the link in main post. – sagiksp Mar 30 '17 at 22:58

0 Answers0