Refactor LIB_DIR -> LIB_ROOT

This commit is contained in:
Labrys of Knossos 2018-12-19 19:19:13 -05:00
commit 200a8d8827
2 changed files with 3 additions and 4 deletions

View file

@ -4,8 +4,7 @@ import sys
import libs.util
ROOT_DIR = libs.util.module_path()
LIB_DIR = os.path.join(ROOT_DIR, 'libs')
LIB_ROOT = libs.util.module_path()
COMMON = 'common'
CUSTOM = 'custom'
@ -18,7 +17,7 @@ MANDATORY = {
CUSTOM,
}
DIRECTORY = {
lib: os.path.join(LIB_DIR, lib)
lib: os.path.join(LIB_ROOT, lib)
for lib in [COMMON, CUSTOM, PY2, WIN]
}

View file

@ -5,7 +5,7 @@ import time
import libs
if __name__ == '__main__':
os.chdir(libs.LIB_DIR)
os.chdir(libs.LIB_ROOT)
for lib, directory in libs.DIRECTORY.items():
if lib == 'custom':
continue