Commit 5d9284c6 authored by Lucas Carvalho's avatar Lucas Carvalho

Fixed path for test_data documents.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36822 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 95814e91
...@@ -26,17 +26,17 @@ ...@@ -26,17 +26,17 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# #
############################################################################## ##############################################################################
from App.config import getConfiguration
from os import sep import os
from Products.ERP5 import tests
def Zuite_getTestDocumentsHome(self): def Zuite_getTestDocumentsHome(self):
""" """
Get test documents folder as string. Get test documents folder as string.
""" """
instance_home_path = getConfiguration().instancehome return os.path.join(
instance_home_elements = instance_home_path.split(sep)[:-1] os.path.abspath(
instance_home_elements.append('test_documents') os.path.dirname(tests.__file__)),'test_data')
documents_home = sep.join(instance_home_elements)
return documents_home
31 32
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment