command-line args

Michael mogmios at mlug.missouri.edu
Fri Apr 23 23:51:46 EDT 2004


What's the perfered method of passing command-line args throughout a 
Python program given that globals don't seem to really exist? I thought 
of writing them out to a python file and then importing them when 
needed.. but that seems like it'd only work for a single process.. not 
in instances where more than one user is running the program. There 
isn't anything like a virtual file space that could be used for this? 
Anyway to set a global variable?




More information about the Python-list mailing list