mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Refactor LIB_DIR -> LIB_ROOT
This commit is contained in:
parent
32e0d7dba2
commit
200a8d8827
2 changed files with 3 additions and 4 deletions
|
@ -4,8 +4,7 @@ import sys
|
||||||
|
|
||||||
import libs.util
|
import libs.util
|
||||||
|
|
||||||
ROOT_DIR = libs.util.module_path()
|
LIB_ROOT = libs.util.module_path()
|
||||||
LIB_DIR = os.path.join(ROOT_DIR, 'libs')
|
|
||||||
|
|
||||||
COMMON = 'common'
|
COMMON = 'common'
|
||||||
CUSTOM = 'custom'
|
CUSTOM = 'custom'
|
||||||
|
@ -18,7 +17,7 @@ MANDATORY = {
|
||||||
CUSTOM,
|
CUSTOM,
|
||||||
}
|
}
|
||||||
DIRECTORY = {
|
DIRECTORY = {
|
||||||
lib: os.path.join(LIB_DIR, lib)
|
lib: os.path.join(LIB_ROOT, lib)
|
||||||
for lib in [COMMON, CUSTOM, PY2, WIN]
|
for lib in [COMMON, CUSTOM, PY2, WIN]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import time
|
||||||
import libs
|
import libs
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
os.chdir(libs.LIB_DIR)
|
os.chdir(libs.LIB_ROOT)
|
||||||
for lib, directory in libs.DIRECTORY.items():
|
for lib, directory in libs.DIRECTORY.items():
|
||||||
if lib == 'custom':
|
if lib == 'custom':
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue