Skip to content

Instantly share code, notes, and snippets.

@lega911
Created August 24, 2015 11:22
Show Gist options
  • Save lega911/6d256d22fc5fb92f7a71 to your computer and use it in GitHub Desktop.
Save lega911/6d256d22fc5fb92f7a71 to your computer and use it in GitHub Desktop.
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