Load files given in arguments

This commit is contained in:
Némunaire 2012-06-29 01:00:26 +02:00
parent 88a9343b09
commit 215622e070

View File

@ -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)