Changeset 3430
- Timestamp:
- 10/05/08 11:31:35 (16 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pksetup
r3413 r3430 269 269 olddirectory = os.getcwd() 270 270 directory = tempfile.mkdtemp() 271 print "\nDownloading additional software not available as packages in %(directory)s" % locals()271 sys.stdout.write("\nDownloading additional software not available as packages in %(directory)s\n" % locals()) 272 272 os.chdir(directory) 273 273 for package in self.otherpackages : … … 420 420 self.setupBackend() 421 421 self.managePrinters(self.listPrinters()) 422 print nowready423 print "The script %s can be used to reinstall in unattended mode.\n" % self.genInstaller()422 sys.stdout.write("%s\n" % nowready) 423 sys.stdout.write("The script %s can be used to reinstall in unattended mode.\n\n" % self.genInstaller()) 424 424 425 425 def genInstaller(self) : … … 459 459 retcode = 0 460 460 if (len(sys.argv) != 2) or (sys.argv[1] == "-h") or (sys.argv[1] == "--help") : 461 print "pksetup v0.1 (c) 2003-2008 Jerome Alet - alet@librelogiciel.com\n\nusage : pksetup distribution\n\ne.g. : pksetup debian\n\nIMPORTANT : only Debian and Ubuntu are currently supported."461 sys.stdout.write("pksetup v0.1 (c) 2003-2008 Jerome Alet - alet@librelogiciel.com\n\nusage : pksetup distribution\n\ne.g. : pksetup debian\n\nIMPORTANT : only Debian and Ubuntu are currently supported.\n") 462 462 elif (sys.argv[1] == "-v") or (sys.argv[1] == "--version") : 463 print "0.1"# pksetup's own version number463 sys.stdout.write("0.1\n") # pksetup's own version number 464 464 else : 465 465 classname = sys.argv[1].strip().title() -
pykota/trunk/checkdeps.py
r3413 r3430 59 59 60 60 if __name__ == "__main__" : 61 print "Checking PyKota dependencies..."61 sys.stdout.write("Checking PyKota dependencies...\n") 62 62 63 63 # checks if Python version is correct, we need >= 2.2 -
pykota/trunk/pykota/tool.py
r3429 r3430 210 210 except AttributeError : 211 211 pass 212 print __version__212 self.display("%s\n" % __version__) 213 213 sys.exit(0) 214 214 … … 219 219 except AttributeError : 220 220 pass 221 print _(self.documentation) % globals() 222 print __gplblurb__ 223 print 224 print _("Please report bugs to :"), __author__ 221 self.display("%s\n" % (_(self.documentation) % globals())) 222 self.display("%s\n\n" % __gplblurb__) 223 self.display("%s %s\n" % (_("Please report bugs to :"), __author__)) 225 224 sys.exit(0) 226 225