All pastes #290121 Raw Edit

Someone

public text v1 · immutable
#290121 ·published 2006-12-23 18:25 UTC
rendered paste body
    def installfiles(self):
        destpath = os.path.join(self.root, "usr/share/litconverter")
        if not os.path.exists(destpath):
            os.makedirs(destpath)
        os.chdir('src')
        for py_files in glob.glob('*.py'):
            print 'Installing', py_files
            shutil.copy(py_files, os.path.join(destpath, py_files))
            destpath = os.path.join(self.root, "usr/bin")
            os.symlink("litconverter", os.path.join(destpath, "litconverter"))
        os.chdir('..')