[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] r137170 - trunk/qa/common
From:       "Rusty Howell (rhowell () novell ! com)" <mono-patches-list () lists ! ximian ! com>
Date:       2009-06-30 22:06:40
Message-ID: 20090630220640.1AE4F9472C () mono-cvs ! ximian ! com
[Download RAW message or body]

Author: rhowell
Date: 2009-06-30 18:06:39 -0400 (Tue, 30 Jun 2009)
New Revision: 137170

Modified:
   trunk/qa/common/monotesting.py
Log:
* Clean up bug in getting the qa/common directory

Modified: trunk/qa/common/monotesting.py
===================================================================
--- trunk/qa/common/monotesting.py	2009-06-30 21:54:57 UTC (rev 137169)
+++ trunk/qa/common/monotesting.py	2009-06-30 22:06:39 UTC (rev 137170)
@@ -166,10 +166,8 @@
 def __getCommonDir():
     '''Returns the absolute path of trunk/qa/common directory'''
 
-    prefix = os.getcwd()
-    for dir in  __file__.split('/')[:-1]: # this is the path of monotesting.py
-        prefix = os.path.join(prefix,dir)
-    return os.path.normpath(prefix)
+    dir = os.path.join(os.getcwd(),os.path.dirname(__file__))
+    return os.path.normpath(dir)
 
 
 #----------------------------------------------------------------------

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic