Bouncer: Add 'are you running this correctly?' check

This commit is contained in:
Athanasius 2022-03-18 14:22:55 +00:00
parent 6a4bad49c8
commit 3f024f965c
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -28,10 +28,30 @@ Architecture:
"""
import argparse
import logging
import sys
import zlib
from datetime import datetime
from typing import Callable
if sys.path[0].endswith('/eddn'):
print(sys.path)
print(
'''
You're not running this script correctly.
Do not do:
python <path to>/Bouncer.py <other arguments>
instead do:
cd <src directory>
python -m eddn.Bouncer <other arguments>
'''
)
sys.exit(-1)
import gevent
import requests
import simplejson