Hidden Z 9 years ago
parent
commit
06468a3c7c
  1. 2
      bin/py-i2phosts-builder
  2. 2
      bin/py-i2phosts-checker
  3. 2
      bin/py-i2phosts-fetcher
  4. 2
      bin/py-i2phosts-injector
  5. 2
      bin/py-i2phosts-maint
  6. 2
      bin/py-i2phosts-master

2
bin/py-i2phosts-builder

@ -35,6 +35,8 @@ else: @@ -35,6 +35,8 @@ else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..'
sys.path.insert(1, DJANGO_PROJECT_PATH)
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
import django
django.setup()
from pyi2phosts.postkey.models import i2phost
from pyi2phosts.lib.utils import validate_config

2
bin/py-i2phosts-checker

@ -40,6 +40,8 @@ else: @@ -40,6 +40,8 @@ else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..'
sys.path.insert(1, DJANGO_PROJECT_PATH)
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
import django
django.setup()
from pyi2phosts.postkey.models import i2phost
from pyi2phosts.lib.utils import get_logger
from pyi2phosts.lib.utils import validate_config

2
bin/py-i2phosts-fetcher

@ -43,6 +43,8 @@ else: @@ -43,6 +43,8 @@ else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..'
sys.path.insert(1, DJANGO_PROJECT_PATH)
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
import django
django.setup()
from pyi2phosts.lib.utils import get_logger
from pyi2phosts.lib.utils import validate_config
from pyi2phosts.extsources.models import ExternalSource

2
bin/py-i2phosts-injector

@ -40,6 +40,8 @@ else: @@ -40,6 +40,8 @@ else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..'
sys.path.insert(1, DJANGO_PROJECT_PATH)
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
import django
django.setup()
from pyi2phosts.postkey.models import i2phost
from pyi2phosts.lib.validation import validate_hostname
from pyi2phosts.lib.validation import validate_b64hash

2
bin/py-i2phosts-maint

@ -43,6 +43,8 @@ else: @@ -43,6 +43,8 @@ else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..'
sys.path.insert(1, DJANGO_PROJECT_PATH)
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
import django
django.setup()
from pyi2phosts.postkey.models import i2phost
from pyi2phosts.lib.utils import get_logger
from pyi2phosts.lib.utils import validate_config

2
bin/py-i2phosts-master

@ -128,6 +128,8 @@ else: @@ -128,6 +128,8 @@ else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/..'
sys.path.insert(1, DJANGO_PROJECT_PATH)
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
import django
django.setup()
from pyi2phosts.lib.utils import get_logger
from pyi2phosts.lib.utils import validate_config

Loading…
Cancel
Save