From: Zac Medico Date: Thu, 6 Aug 2009 05:47:03 +0000 (-0000) Subject: Use realpath to resolve __file__ when searching for test inside main(). X-Git-Tag: v2.2_rc37~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3c287875ccd85022d480cd8168ce48370897824;p=portage.git Use realpath to resolve __file__ when searching for test inside main(). svn path=/main/trunk/; revision=13928 --- diff --git a/pym/portage/tests/__init__.py b/pym/portage/tests/__init__.py index 7f207a2d0..8676c6ae2 100644 --- a/pym/portage/tests/__init__.py +++ b/pym/portage/tests/__init__.py @@ -12,7 +12,7 @@ def main(): TEST_FILE = '__test__' suite = unittest.TestSuite() - basedir = os.path.dirname(__file__) + basedir = os.path.dirname(os.path.realpath(__file__)) testDirs = [] # the os.walk help mentions relative paths as being quirky