From d8c977b6b006cd1372ac7e751e6aa352f5734127 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 8 Nov 2017 17:51:57 +0100 Subject: [PATCH] Moved dns-deploy-zones -> bin/ --- dns-deploy-zones => bin/dns-deploy-zones | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename dns-deploy-zones => bin/dns-deploy-zones (77%) diff --git a/dns-deploy-zones b/bin/dns-deploy-zones similarity index 77% rename from dns-deploy-zones rename to bin/dns-deploy-zones index cd50b74..ddfb931 100755 --- a/dns-deploy-zones +++ b/bin/dns-deploy-zones @@ -11,9 +11,11 @@ cur_dir = os.getcwd() base_dir = cur_dir if sys.argv[0] != '' and sys.argv[0] != '-c': - cur_dir = os.path.dirname(sys.argv[0]) -if os.path.exists(os.path.join(cur_dir, 'pp_lib')): - sys.path.insert(0, os.path.abspath(cur_dir)) + bin_dir = os.path.dirname(sys.argv[0]) +base_dir = os.path.abspath(os.path.join(bin_dir, '..')) +module_dir = os.path.join(base_dir, 'pp_lib') +if os.path.exists(module_dir): + sys.path.insert(0, base_dir) from pp_lib.config_named_app import PpConfigNamedApp -- 2.39.5