apenwarr-redo/vars.py
2010-11-13 00:11:34 -08:00

9 lines
298 B
Python

import os
TARGET = os.environ.get('REDO_TARGET', '')
DEPTH = os.environ.get('REDO_DEPTH', '')
DEBUG = os.environ.get('REDO_DEBUG', '') and 1 or 0
VERBOSE = os.environ.get('REDO_VERBOSE', '') and 1 or 0
BASE = os.path.abspath(os.environ['REDO_BASE'])
while BASE.endswith('/'):
BASE = BASE[:-1]