2010-11-12 22:47:03 -08:00
|
|
|
import os
|
|
|
|
|
|
2010-11-13 00:11:34 -08:00
|
|
|
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
|
2010-11-13 01:55:07 -08:00
|
|
|
STARTDIR = os.environ.get('REDO_STARTDIR', '')
|
2010-11-13 01:08:28 -08:00
|
|
|
BASE = os.environ.get('REDO_BASE', '')
|
|
|
|
|
if BASE:
|
|
|
|
|
BASE = os.path.abspath(BASE)
|
|
|
|
|
while BASE and BASE.endswith('/'):
|
|
|
|
|
BASE = BASE[:-1]
|