
import sys
import os
import imp
import traceback

servers = dict()

print ("Nemubot ready, my PID is %i!" % (os.getpid()))
prompt = __import__ ("prompt")
while prompt.launch(servers):
    try:
        imp.reload(prompt)
    except:
        print ("Unable to reload the prompt due to errors. Fix them before trying to reload the prompt.")
        exc_type, exc_value, exc_traceback = sys.exc_info()
        sys.stdout.write (traceback.format_exception_only(exc_type, exc_value)[0])

print ("Bye")
sys.exit(0)


import sys
import os
import imp
import traceback

servers = dict()

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)
    except:
        print ("Unable to reload the prompt due to errors. Fix them before trying to reload the prompt.")
        exc_type, exc_value, exc_traceback = sys.exc_info()
        sys.stdout.write (traceback.format_exception_only(exc_type, exc_value)[0])

print ("Bye")
sys.exit(0)

Load files given in arguments
Load files given in arguments

  
  import sys
  import os
  import imp
  import traceback
  
  servers = dict()
  
+ 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()))
- prompt = __import__ ("prompt")
  while prompt.launch(servers):
      try:
          imp.reload(prompt)
      except:
          print ("Unable to reload the prompt due to errors. Fix them before trying to reload the prompt.")
          exc_type, exc_value, exc_traceback = sys.exc_info()
          sys.stdout.write (traceback.format_exception_only(exc_type, exc_value)[0])
  
  print ("Bye")
  sys.exit(0)
  
Load files given in arguments
## Code Before:

import sys
import os
import imp
import traceback

servers = dict()

print ("Nemubot ready, my PID is %i!" % (os.getpid()))
prompt = __import__ ("prompt")
while prompt.launch(servers):
    try:
        imp.reload(prompt)
    except:
        print ("Unable to reload the prompt due to errors. Fix them before trying to reload the prompt.")
        exc_type, exc_value, exc_traceback = sys.exc_info()
        sys.stdout.write (traceback.format_exception_only(exc_type, exc_value)[0])

print ("Bye")
sys.exit(0)

## Instruction:
Load files given in arguments
## Code After:

import sys
import os
import imp
import traceback

servers = dict()

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)
    except:
        print ("Unable to reload the prompt due to errors. Fix them before trying to reload the prompt.")
        exc_type, exc_value, exc_traceback = sys.exc_info()
        sys.stdout.write (traceback.format_exception_only(exc_type, exc_value)[0])

print ("Bye")
sys.exit(0)
