Load files given in arguments
This commit is contained in:
parent
88a9343b09
commit
215622e070
@ -8,8 +8,13 @@ import traceback
|
||||
|
||||
servers = dict()
|
||||
|
||||
print ("Nemubot ready, my PID is %i!" % (os.getpid()))
|
||||
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):
|
||||
try:
|
||||
imp.reload(prompt)
|
||||
|
Loading…
Reference in New Issue
Block a user