[IMP] packagin setup.py dont rely on cwd
authorAntony Lesuisse <al@openerp.com>
Sat, 1 Oct 2011 13:32:51 +0000 (15:32 +0200)
committerAntony Lesuisse <al@openerp.com>
Sat, 1 Oct 2011 13:32:51 +0000 (15:32 +0200)
bzr revid: al@openerp.com-20111001133251-tlad32kl2c1rjib9

setup.py

index 9595c1a..4813c21 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@
 import glob, os, re, setuptools, sys
 from os.path import join, isfile
 
-execfile(join('openerp', 'release.py'))
+execfile(join(os.path.dirname(__file__), 'openerp', 'release.py'))
 
 py2exe_keywords = {}
 if os.name == 'nt':