If I\'m in debug mode, I want to do other stuff than when I\'m not.
if DEBUG:
STORED_DATA_FILE = os.path.join(TEMP_DIR, \'store.dat\')
LOG_LEVEL = lo
Parser debug mode is enabled with -d commandline option or PYTHONDEBUG environment variable and starting from python 2.6 is reflected in sys.flags.debug. But are you sure this is what you are looking for?
you can use python -O with the __debug__ variable
where -O means optimise. so __debug__ is false
-d turns on debugging for the parser, which is not what you want