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

This commit is contained in:
Athanasius committed 2022-08-18 15:20:21 +01:00
1 parent 6a4bad49c8
commit 3f024f965c
1 file changed
+20
+20
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