libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r919906 - /incubator/libcloud/trunk/test/file_fixtures.py
Date Sun, 07 Mar 2010 01:32:01 GMT
Author: jerry
Date: Sun Mar  7 01:32:01 2010
New Revision: 919906

URL: http://svn.apache.org/viewvc?rev=919906&view=rev
Log:
Fixed FileFixtures directory lookup

Modified:
    incubator/libcloud/trunk/test/file_fixtures.py

Modified: incubator/libcloud/trunk/test/file_fixtures.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/test/file_fixtures.py?rev=919906&r1=919905&r2=919906&view=diff
==============================================================================
--- incubator/libcloud/trunk/test/file_fixtures.py (original)
+++ incubator/libcloud/trunk/test/file_fixtures.py Sun Mar  7 01:32:01 2010
@@ -17,11 +17,12 @@
 
 import os
 
-FILE_FIXTURE_ROOT = 'test/fixtures'
+FIXTURES_ROOT = 'fixtures'
 
 class FileFixtures:
-    def __init__(self, root):
-        self.root = os.path.join(FILE_FIXTURE_ROOT, root)
+    def __init__(self, sub_dir=''):
+        script_dir = os.path.abspath(os.path.split(__file__)[0])
+        self.root = os.path.join(script_dir, FIXTURES_ROOT, sub_dir)
 
     def load(self, file):
         path = os.path.join(self.root, file)



Mime
View raw message