← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3782: Set the higher pripority in sys.path to self-compiled modules in

 

------------------------------------------------------------
revno: 3782
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Fri 2013-12-20 16:10:54 +0100
message:
  Set the higher pripority in sys.path to self-compiled modules in
  yade-batch.
modified:
  core/main/yade-batch.in


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

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/main/yade-batch.in'
--- core/main/yade-batch.in	2013-05-24 16:48:19 +0000
+++ core/main/yade-batch.in	2013-12-20 15:10:54 +0000
@@ -6,6 +6,13 @@
 
 import os, sys, thread, time, logging, pipes, socket, xmlrpclib, re, shutil, random
 
+# Add search path for yade Python-modules
+# It allows to use both Yade-versions (packaged and self-compiled one).
+# See LP:1254708 for more details
+# https://bugs.launchpad.net/yade/+bug/1254708
+
+sys.path.insert(1,'${runtimePREFIX}/${LIBRARY_OUTPUT_PATH}/yade${SUFFIX}/py')
+
 #socket.setdefaulttimeout(10) 
 
 ## replaced by scons automatically