ignore hidden files, ignore data dir, dont close on startup error, create necessary files and dirs on first start, start function to main.py, bad file solved log to info
This commit is contained in:
parent
e141a771ee
commit
effa267b73
6 changed files with 30 additions and 11 deletions
14
zeronet.py
14
zeronet.py
|
@ -1,7 +1,9 @@
|
|||
from src import main
|
||||
|
||||
action_func = getattr(main, main.config.action)
|
||||
action_kwargs = main.config.getActionArguments()
|
||||
|
||||
action_func(**action_kwargs)
|
||||
#!/usr/bin/env python
|
||||
|
||||
try:
|
||||
from src import main
|
||||
main.start()
|
||||
except Exception, err: # Prevent closing
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
raw_input("-- Error happend, press enter to close --")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue