Revision: 458
http://rpy.svn.sourceforge.net/rpy/?rev=458&view=rev
Author: lgautier
Date: 2008-03-22 07:04:19 -0700 (Sat, 22 Mar 2008)
Log Message:
-----------
Fix error when R_HOME defined and RHOMES not defined
Modified Paths:
--------------
branches/rpy_nextgen/setup.py
Modified: branches/rpy_nextgen/setup.py
===================================================================
--- branches/rpy_nextgen/setup.py 2008-03-22 13:49:08 UTC (rev 457)
+++ branches/rpy_nextgen/setup.py 2008-03-22 14:04:19 UTC (rev 458)
@@ -10,6 +10,10 @@
if RHOMES is None:
RHOMES = [Popen(["R", "RHOME"], stdout=PIPE).communicate()[0].strip(), ]
+ #Twist if 'R RHOME' spits out a warning
+ if RHOMES[:6] == "WARNING":
+ i = s.find(os.linesep)
+ RHOMES = RHOMES[i:]
else:
RHOMES = RHOMES.split(os.pathsep)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list