Show
Ignore:
Timestamp:
01/18/08 23:39:41 (16 years ago)
Author:
jerome
Message:

Added modules to store utility functions and application
intialization code, which has nothing to do in classes.
Modified tool.py accordingly (far from being finished)
Use these new modules where necessary.
Now converts all command line arguments to unicode before
beginning to work. Added a proper logging method for already
encoded query strings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r3288 r3294  
    2323 
    2424import sys 
     25 
     26import pykota.appinit 
     27from pykota.utils import * 
    2528 
    2629from pykota.errors import PyKotaCommandLineError 
     
    352355            retcode = manager.main(args, options) 
    353356    except KeyboardInterrupt :         
    354         sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     357        logerr("\nInterrupted with Ctrl+C !\n") 
    355358        retcode = -3 
    356359    except PyKotaCommandLineError, msg :      
    357         sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     360        logerr("%s : %s\n" % (sys.argv[0], msg)) 
    358361        retcode = -2 
    359362    except SystemExit :