From fcaf187827a49626825f30e2d19d2a84fc90efa9 Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Sun, 12 Sep 2021 13:04:04 -0400 Subject: [PATCH] Revert "Potential fix for imports." This reverts commit 353ffbbaf6f8238c303c07d414eebc9db94b13ef. --- autorecon/{config => }/config.toml | 0 autorecon/{config => }/global.toml | 0 autorecon/main.py | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename autorecon/{config => }/config.toml (100%) rename autorecon/{config => }/global.toml (100%) diff --git a/autorecon/config/config.toml b/autorecon/config.toml similarity index 100% rename from autorecon/config/config.toml rename to autorecon/config.toml diff --git a/autorecon/config/global.toml b/autorecon/global.toml similarity index 100% rename from autorecon/config/global.toml rename to autorecon/global.toml diff --git a/autorecon/main.py b/autorecon/main.py index 5ea88d8..55afc6b 100644 --- a/autorecon/main.py +++ b/autorecon/main.py @@ -20,8 +20,8 @@ from autorecon.targets import Target, Service def install(): shutil.rmtree(config['config_dir'], ignore_errors=True) os.makedirs(config['config_dir'], exist_ok=True) - shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config', 'config.toml'), os.path.join(config['config_dir'], 'config.toml')) - shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config', 'global.toml'), os.path.join(config['config_dir'], 'global.toml')) + shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config.toml'), os.path.join(config['config_dir'], 'config.toml')) + shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'global.toml'), os.path.join(config['config_dir'], 'global.toml')) shutil.copytree(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plugins'), os.path.join(config['config_dir'], 'plugins')) if not os.path.exists(config['config_dir']):