From 5c304805a38c11096922472f4ceccb0f02bc325a Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 11 Jun 2019 21:29:31 -0700 Subject: [PATCH] removed import of hyperglass and replaced with working_dir variable --- manage.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/manage.py b/manage.py index 4e9b06a..6da5376 100755 --- a/manage.py +++ b/manage.py @@ -495,14 +495,10 @@ def compile_sass(): @hg.command("migrate-configs", help="Copy TOML examples to usable config files") def migrateconfig(): """Copies example configuration files to usable config files""" - try: - import hyperglass - except ImportError as error_exception: - click.secho(f"Error importing hyperglass:\n{error_exception}") try: click.secho("Migrating example config files...", fg="black") - hyperglass_root = os.path.dirname(hyperglass.__file__) - config_dir = os.path.join(hyperglass_root, "configuration/") + working_directory = os.path.dirname(os.path.abspath(__file__)) + config_dir = os.path.join(working_directory, "configuration/") examples = glob.iglob(os.path.join(config_dir, "*.example")) for f in examples: basefile, extension = os.path.splitext(f)