From 484cb5bee72599ea2c1afd130e6ae880c37c5764 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Fri, 27 Sep 2013 18:43:51 +0000 Subject: [PATCH] Update default DJANGO_PROJECT_PATH --- bin/py-i2phosts-builder | 2 +- bin/py-i2phosts-checker | 2 +- bin/py-i2phosts-fetcher | 2 +- bin/py-i2phosts-injector | 2 +- bin/py-i2phosts-maint | 2 +- bin/py-i2phosts-master | 2 +- tools/fix-description | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/py-i2phosts-builder b/bin/py-i2phosts-builder index 70469dc..b7d27b1 100755 --- a/bin/py-i2phosts-builder +++ b/bin/py-i2phosts-builder @@ -32,7 +32,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from pyi2phosts.postkey.models import i2phost diff --git a/bin/py-i2phosts-checker b/bin/py-i2phosts-checker index 68c44a0..03ee450 100755 --- a/bin/py-i2phosts-checker +++ b/bin/py-i2phosts-checker @@ -36,7 +36,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from pyi2phosts.postkey.models import i2phost diff --git a/bin/py-i2phosts-fetcher b/bin/py-i2phosts-fetcher index b0c6b6e..649dd55 100755 --- a/bin/py-i2phosts-fetcher +++ b/bin/py-i2phosts-fetcher @@ -40,7 +40,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from pyi2phosts.lib.utils import get_logger diff --git a/bin/py-i2phosts-injector b/bin/py-i2phosts-injector index dba8437..9e55a12 100755 --- a/bin/py-i2phosts-injector +++ b/bin/py-i2phosts-injector @@ -37,7 +37,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from pyi2phosts.postkey.models import i2phost diff --git a/bin/py-i2phosts-maint b/bin/py-i2phosts-maint index 58c74ef..5900e9f 100755 --- a/bin/py-i2phosts-maint +++ b/bin/py-i2phosts-maint @@ -40,7 +40,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from pyi2phosts.postkey.models import i2phost diff --git a/bin/py-i2phosts-master b/bin/py-i2phosts-master index 1917835..f0ae38a 100755 --- a/bin/py-i2phosts-master +++ b/bin/py-i2phosts-master @@ -125,7 +125,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from pyi2phosts.lib.utils import get_logger diff --git a/tools/fix-description b/tools/fix-description index eb07d9e..5702765 100755 --- a/tools/fix-description +++ b/tools/fix-description @@ -58,7 +58,7 @@ DJANGO_SETTINGS_MODULE = 'pyi2phosts.settings' if 'DJANGO_PROJECT_PATH' in config: DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] else: - DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' + DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..' sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE