From 3f024f965c62025200ab6bf7240eec9e48d3478f Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 18 Mar 2022 14:22:55 +0000 Subject: [PATCH] Bouncer: Add 'are you running this correctly?' check --- src/eddn/Bouncer.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/eddn/Bouncer.py b/src/eddn/Bouncer.py index d0c9ce4..ae1d730 100644 --- a/src/eddn/Bouncer.py +++ b/src/eddn/Bouncer.py @@ -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 /Bouncer.py + +instead do: + + cd + python -m eddn.Bouncer +''' + ) + sys.exit(-1) + + import gevent import requests import simplejson