← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 1860: (Python 2.5 fix for robot)

 

------------------------------------------------------------
revno: 1860
committer: Václav Šmilauer <eudoxos@xxxxxxxx>
branch nick: trunk
timestamp: Sun 2009-12-06 09:25:09 +0100
message:
  (Python 2.5 fix for robot)
modified:
  py/__init__.py.in


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'py/__init__.py.in'
--- py/__init__.py.in	2009-12-04 21:56:59 +0000
+++ py/__init__.py.in	2009-12-06 08:25:09 +0000
@@ -38,7 +38,8 @@
 libDir=(config.prefix if not os.environ.has_key('YADE_PREFIX') else os.environ['YADE_PREFIX'])+'/lib/yade'+config.suffix
 # find plugins recursively
 plugins=[]
-for root,dirs,files in os.walk(libDir,followlinks=True):
+# might add followlinks=True to os.walk, for python>=2.6
+for root,dirs,files in os.walk(libDir):
 	for f in files:
 		if not (f.startswith('lib') and f.endswith('.so')): continue
 		plugin=os.path.join(libDir,root,f)