mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-28 06:02:13 +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 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user