-
-
Save lega911/6d256d22fc5fb92f7a71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from eps_get import EPS | |
import core, app # load app | |
import sys | |
def call_eps(name): | |
EPS.system.start() | |
fn = EPS | |
for k in name.split('.')[1:]: | |
if not k: | |
for key in dir(fn): | |
if key.startswith('__'): | |
continue | |
kind = str(type(getattr(fn, key))) | |
if 'eps.hook.CNode' in kind: | |
kind = ' -> ' | |
print(key, kind) | |
return | |
fn = fn[k] | |
fn() | |
code = None | |
if len(sys.argv) > 1: | |
code = sys.argv[1] | |
if not code: | |
EPS.system.start() | |
EPS.db.reindex() | |
EPS.web.start() | |
elif code.startswith('EPS.'): | |
call_eps(code) | |
else: | |
print('Wrong args') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment