From e9f41e9e3ef8f6d35dda10c6c58d77b52d577e8a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 21 Sep 2019 18:40:15 +0200 Subject: remove whitespace and comment global vars --- src/globalvars.py | 6 ++++++ src/util.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/globalvars.py b/src/globalvars.py index e18a589..98434c3 100644 --- a/src/globalvars.py +++ b/src/globalvars.py @@ -41,16 +41,22 @@ verbosity = 0 allocators = {} +# allocbench/src/ srcdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) +# allocbench/src/benchmarks benchsrcdir = os.path.join(srcdir, "benchmarks") +# allocbench/src/allocators allocsrcdir = os.path.join(srcdir, "allocators") +# allocbench allocbenchdir = os.path.dirname(srcdir) +# allocbench/build builddir = os.path.join(allocbenchdir, "build") +# allocbench/build/allocators allocbuilddir = os.path.join(builddir, "allocators") resdir = None diff --git a/src/util.py b/src/util.py index 027cbcb..b44a263 100644 --- a/src/util.py +++ b/src/util.py @@ -164,12 +164,12 @@ def print_version_and_exit(): proc = subprocess.run(["git", "status", "--porcelain"], universal_newlines=True, stdout=subprocess.PIPE) - + if proc.returncode != 0: print_error("git status --porcelain failed") exit(1) dirty = "-dirty" if proc.stdout != "" else "" - + print(f"{commit}{dirty}") exit(0) -- cgit v1.2.3