Load files given in arguments
This commit is contained in:
parent
88a9343b09
commit
215622e070
@ -8,8 +8,13 @@ import traceback
|
|||||||
|
|
||||||
servers = dict()
|
servers = dict()
|
||||||
|
|
||||||
print ("Nemubot ready, my PID is %i!" % (os.getpid()))
|
|
||||||
prompt = __import__ ("prompt")
|
prompt = __import__ ("prompt")
|
||||||
|
|
||||||
|
if len(sys.argv) >= 2:
|
||||||
|
for arg in sys.argv[1:]:
|
||||||
|
prompt.load_file(arg, servers)
|
||||||
|
|
||||||
|
print ("Nemubot ready, my PID is %i!" % (os.getpid()))
|
||||||
while prompt.launch(servers):
|
while prompt.launch(servers):
|
||||||
try:
|
try:
|
||||||
imp.reload(prompt)
|
imp.reload(prompt)
|
||||||
|
Loading…
Reference in New Issue
Block a user