Show
Ignore:
Timestamp:
06/27/07 23:17:40 (17 years ago)
Author:
jerome
Message:

Added missing step : pksetup should install PyKota's files first.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pksetup

    r3194 r3196  
    381381            self.confirmCommand("to import the %(queuename)s print queue into PyKota's database and reroute it through PyKota" % locals(), command) 
    382382     
     383    def installPyKotaFiles(self) : 
     384        """Installs PyKota files through Python's Distutils mechanism.""" 
     385        pksetupdir = os.path.split(os.path.abspath(sys.argv[0]))[0] 
     386        pykotadir = os.path.abspath(os.path.join(pksetupdir, "..")) 
     387        setuppy = os.path.join(pykotadir, "setup.py") 
     388        self.confirmCommand("to install PyKota files on your system", "python %(setuppy)s install" % locals()) 
     389         
    383390    def setup(self) : 
    384391        """Installation procedure.""" 
     392        self.installPyKotaFiles() 
    385393        self.waitPrintersOnline() 
    386394        adminname = raw_input("What is the name of the print administrator ? ").strip()