fork download
  1. """ # Copyright (c) 2013 Nana Robiana
  2. report bug @ http://m...content-available-to-author-only...k.in/migpy or email me robiana.nana@gmail.com
  3. package: Migpy
  4. version : 1.0b7
  5. description: Migpy is the simple mig33 client application that written on python language. This python based application was designed for s60 2nd Edition Platform that can be run with python interpreter. Usage of this software is at your own risk without any warranty.
  6. """
  7. import os, sys, traceback
  8.  
  9. # server and default room
  10. __user__= {'name': 'baronsss', 'pass':'septian666', 'author': 'ericnaga666'}
  11.  
  12. __path__= 'e:\\system\\libs\\'
  13. if __path__ not in sys.path:
  14. sys.path.append(__path__)
  15.  
  16. # list of module files
  17. __modfiles__= ['data', 'function', 'parser', 'log', 'timer', 'multisock']
  18.  
  19. # list of database keys
  20. __keys__= ['app', 'ver', 'auth', 'wap', 'host', 'port', 'user', 'pass', 'autopost', 'autoleft', 'autowc', 'intval', 'respond', 'botauth', 'blog', 'dog', 'level']
  21.  
  22. sys.stderr= open(__path__+'error.log', 'wb')
  23.  
  24. try:
  25. # check database file
  26. import data
  27. db= data.MigData(__path__+'config.dat')
  28. for key in __keys__:
  29. if key not in db.getKeys():
  30. db.set(key, '')
  31. db.set('user', __user__['name'])
  32. db.set('pass', __user__['pass'])
  33. db.set('botauth', __user__['author'])
  34. db.set('dog', 0)
  35. db.save()
  36.  
  37. import loader2
  38. nanx= loader2.Main(__user__)
  39. nanx.start()
  40. except Exception:
  41. traceback.print_exc(sys.stderr)
  42.  
  43. sys.stderr.close()
  44.  
Runtime error #stdin #stdout #stderr 0.12s 10104KB
stdin
""" # Copyright (c) 2013 Nana Robiana
report bug @  http://m...content-available-to-author-only...k.in/migpy or email me robiana.nana@gmail.com
package: Migpy
version : 1.0b7
description: Migpy is the simple mig33 client application that written on python language. This python based application was designed for s60 2nd Edition Platform that can be run with python interpreter. Usage of this software is at your own risk without any warranty.
"""
import os, sys, traceback

# server and default room
__user__= {'name': 'baronsss', 'pass':'septian666', 'author': 'ericnaga666'}

__path__= 'e:\\system\\libs\\'
if __path__ not in sys.path:
 sys.path.append(__path__)

# list of module files
__modfiles__= ['data', 'function', 'parser', 'log', 'timer', 'multisock']

# list of database keys
__keys__= ['app', 'ver', 'auth', 'wap', 'host', 'port', 'user', 'pass', 'autopost', 'autoleft', 'autowc', 'intval', 'respond', 'botauth', 'blog', 'dog', 'level']

sys.stderr= open(__path__+'error.log', 'wb')

try:
# check database file
 import data
 db= data.MigData(__path__+'config.dat')
 for key in __keys__:
  if key not in db.getKeys():
   db.set(key, '')
 db.set('user', __user__['name'])
 db.set('pass', __user__['pass'])
 db.set('botauth', __user__['author'])
 db.set('dog', 0)
 db.save()

 import loader2
 nanx= loader2.Main(__user__)
 nanx.start()
except Exception:
 traceback.print_exc(sys.stderr)

sys.stderr.close()
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 22, in <module>
IOError: [Errno 13] Permission denied: 'e:\\system\\libs\\error.log'