vars.py: it's safe to assume REDO_BASE and REDO_STARTDIR are set correctly.
This lets us remove an extra call to os.abspath().
This commit is contained in:
parent
700873a90f
commit
61c7e0f8a8
1 changed files with 4 additions and 6 deletions
6
vars.py
6
vars.py
|
|
@ -6,9 +6,7 @@ DEPTH = os.environ.get('REDO_DEPTH', '')
|
||||||
DEBUG = atoi.atoi(os.environ.get('REDO_DEBUG', ''))
|
DEBUG = atoi.atoi(os.environ.get('REDO_DEBUG', ''))
|
||||||
VERBOSE = os.environ.get('REDO_VERBOSE', '') and 1 or 0
|
VERBOSE = os.environ.get('REDO_VERBOSE', '') and 1 or 0
|
||||||
SHUFFLE = os.environ.get('REDO_SHUFFLE', '') and 1 or 0
|
SHUFFLE = os.environ.get('REDO_SHUFFLE', '') and 1 or 0
|
||||||
STARTDIR = os.environ.get('REDO_STARTDIR', '')
|
STARTDIR = os.environ['REDO_STARTDIR']
|
||||||
BASE = os.environ.get('REDO_BASE', '')
|
BASE = os.environ['REDO_BASE']
|
||||||
if BASE:
|
|
||||||
BASE = os.path.abspath(BASE)
|
|
||||||
while BASE and BASE.endswith('/'):
|
while BASE and BASE.endswith('/'):
|
||||||
BASE = BASE[:-1]
|
BASE = BASE[:-1]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue