dwyndy's profile - activity

2023-10-22 02:39:02 -0500 marked best answer Wing 9 Personal Struggling to get sys.argv to show test args in tutorial 9.2

This is the line of the tutorial I don't understand: "Try this now by bringing up File Properties for example1.py and set the run arguments in the Debug/Execute tab to test args."

To find the TESTPROJECT 1: In Python Shell I did this:

import os 
import pprint 

env_var = os.environ 

print("User's Environment variable:") 
pprint.pprint(dict(env_var), width = 1)

and to get sys.argv I tried importing sys first but all I get is:

>>> sys.argv
['']

I did restart debugging, but I'm confused where I'm supposed to find sys.argv from following line from tutorial which says "Now if you restart debugging, os.environ will contain the environment variable TESTPROJECT and sys.argv will end in test args."

2023-10-21 01:29:21 -0500 received badge Student (source)
2023-10-21 01:29:13 -0500 asked a question Wing 9 Personal Struggling to get sys.argv to show test args in tutorial 9.2

Wing 9 Personal Struggling to get sys.argv to show test args in tutorial 9.2 This is the line of the tutorial I don't un