Make tools/settings.py lighter (#1327)
It should not import things it does not use and it should define settings data only (i.e., definition of functions should not happen there). JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
committed by
Tilmann Scheller
parent
caee6f738e
commit
ebbacfc319
+3
-3
@@ -102,15 +102,15 @@ def generate_build_options(arguments):
|
||||
def configure_output_dir(arguments):
|
||||
global BUILD_DIR
|
||||
|
||||
if os.path.isabs(arguments.builddir):
|
||||
if path.isabs(arguments.builddir):
|
||||
BUILD_DIR = arguments.builddir
|
||||
else:
|
||||
BUILD_DIR = path.join(PROJECT_DIR, arguments.builddir)
|
||||
|
||||
if arguments.clean and os.path.exists(BUILD_DIR):
|
||||
if arguments.clean and path.exists(BUILD_DIR):
|
||||
shutil.rmtree(BUILD_DIR)
|
||||
|
||||
if not os.path.exists(BUILD_DIR):
|
||||
if not path.exists(BUILD_DIR):
|
||||
makedirs(BUILD_DIR)
|
||||
|
||||
def configure_build(arguments):
|
||||
|
||||
Reference in New Issue
Block a user