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/autopykota

    r3288 r3294  
    2525import sys 
    2626import os 
     27 
     28import pykota.appinit 
     29from pykota.utils import * 
    2730 
    2831from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     
    140143            retcode = automat.main(args, options) 
    141144    except KeyboardInterrupt :         
    142         sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     145        logerr("\nInterrupted with Ctrl+C !\n") 
    143146        retcode = -3 
    144147    except PyKotaCommandLineError, msg :     
    145         sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     148        logerr("%s : %s\n" % (sys.argv[0], msg)) 
    146149        retcode = -2 
    147150    except SystemExit :