How do I check if the python debug option is set from within a script -


If I'm in debug mode, then I want to do other stuff whenever I'm not.

  If DEBUG: STORED_DATA_FILE = os.path.join (TEMP_DIR, 'store.dat') LOG_LEVEL = logging.DEBUG print "debug mode" and: STORED_DATA_FILE = os.path.join (SCRIPT_PATH) , 'Store.dat') LOG_LEVEL = logging.INFO print "debug mode not"  

then:

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -