Tests: fix __FILE__ -> __file__

* tests/integration/saml2/__init__.py:
   path to the current python file is __file__ not __FILE__.
This commit is contained in:
Benjamin Dauvergne 2009-10-30 14:47:32 +00:00
parent 2b24cd50e2
commit 7e98aff1b7
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ LCSCTL = CONFIG.get('LCSCTL') or '/usr/sbin/lcsctl.py'
LCS_DATADIR = CONFIG.get('LCS_DATADIR') or '/usr/share/lcs/'
LASSO_BUILDDIR = os.environ.get('LASSO_BUILDDIR') or \
CONFIG.get('LASSO_BUILDDIR') or \
os.path.realpath(os.path.join(os.path.dirname(__FILE__), "..", "..", ".."))
os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
os.environ['LD_LIBRARY_PATH'] = os.path.join(LASSO_BUILDDIR, "lasso", ".libs") + ":" + \
os.environ.get('LD_LIBRARY_PATH', '')