mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-29 06:31:32 +03:00
Bouncer: Add 'are you running this correctly?' check
This commit is contained in:
parent
6a4bad49c8
commit
3f024f965c
@ -28,10 +28,30 @@ Architecture:
|
|||||||
"""
|
"""
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
|
import sys
|
||||||
import zlib
|
import zlib
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Callable
|
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 gevent
|
||||||
import requests
|
import requests
|
||||||
import simplejson
|
import simplejson
|
||||||
|
Loading…
x
Reference in New Issue
Block a user