You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2010/03/07 02:32:01 UTC

svn commit: r919906 - /incubator/libcloud/trunk/test/file_fixtures.py

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)