[Erp5-report] r45820 luke - /erp5/trunk/utils/Products.TIDStorage/setup.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 4 14:24:27 CEST 2011
Author: luke
Date: Wed May 4 14:24:27 2011
New Revision: 45820
URL: http://svn.erp5.org?rev=45820&view=rev
Log:
Be more portable.
Modified:
erp5/trunk/utils/Products.TIDStorage/setup.py
Modified: erp5/trunk/utils/Products.TIDStorage/setup.py
URL: http://svn.erp5.org/erp5/trunk/utils/Products.TIDStorage/setup.py?rev=45820&r1=45819&r2=45820&view=diff
==============================================================================
--- erp5/trunk/utils/Products.TIDStorage/setup.py [utf8] (original)
+++ erp5/trunk/utils/Products.TIDStorage/setup.py [utf8] Wed May 4 14:24:27 2011
@@ -1,6 +1,7 @@
from setuptools import setup, find_packages
+import os
-product_path = 'Products/TIDStorage'
+product_path = os.path.join('Products', 'TIDStorage')
version = open('%s/VERSION.txt' % product_path).read().split()[-1]
@@ -9,8 +10,8 @@ setup(name='Products.TIDStorage',
description="TIDStorage Product provides a way to have consistent "\
"backups when running a multi-storage instance (only ZEO is "\
"supported at the moment).",
- long_description=open("%s/README" % product_path).read() + "\n" + \
- open("%s/CHANGES" % product_path).read(),
+ long_description=open(os.path.join(product_path, 'README')).read() + "\n" + \
+ open(os.path.join(product_path, 'CHANGES')).read(),
classifiers=[
"Framework :: Zope2",
"Operating System :: OS Independent",
More information about the Erp5-report
mailing list