def set_installdir(self,installdir): self.install_dir=installdir if (not os.path.lexists(self.install_dir)): os.mkdir(self.install_dir) if "winxp-32" in self.platform: self.install_dir=convert_pathsep(self.install_dir) self.CYGWIN_DIR=self.install_dir+"/cygwin/" self.CYGPAK_DIR=self.install_dir+"/cygpak/"
def set_log_dir(self,logdir): if "winxp-32" in self.platform: self.log_dir=convert_pathsep(logdir) else: self.log_dir=logdir name=self.log_dir+"/birch_install_log"+(str(datetime.datetime.now())).replace(":",".").replace(" ","")+".log" self.log_file=name self.install_log= open (name,"w")