1 *** setup.py.orig 2009-08-02 17:16:31.425667179 +0800
2 --- setup.py 2009-08-02 17:18:53.985653155 +0800
7 self.set_modules_path()
9 ! self.create_uninstaller()
12 def create_uninstaller(self):
16 self.set_modules_path()
18 ! #self.create_uninstaller()
21 def create_uninstaller(self):
24 if self.pkgmaintainer and self.root:
25 modules = os.path.join('/', modules[len(self.root):])
27 ! ucontent.insert(uline, "sys.path.insert(0,'%s')\n" % modules)
29 ufile = open(umit, "w")
30 ufile.writelines(ucontent)
32 if self.pkgmaintainer and self.root:
33 modules = os.path.join('/', modules[len(self.root):])
35 ! modules = "/usr/share/umit"
36 ! ucontent.insert(uline, "sys.path = ['%s'] + sys.path\n" % modules)
38 ufile = open(umit, "w")
39 ufile.writelines(ucontent)