From: Terry Jan Reedy Date: Wed, 6 Jul 2016 01:51:56 +0000 (-0400) Subject: Issue #27452: make command line idle-test> python test_help.py work. X-Git-Tag: v3.6.0a3~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9862b5194d5aa8f788d3fd38a3951d7d25d91352;p=python Issue #27452: make command line idle-test> python test_help.py work. __file__ is relative in this case. --- diff --git a/Lib/idlelib/idle_test/test_help.py b/Lib/idlelib/idle_test/test_help.py index cdded2ac79..2c68e23b32 100644 --- a/Lib/idlelib/idle_test/test_help.py +++ b/Lib/idlelib/idle_test/test_help.py @@ -16,7 +16,7 @@ class HelpFrameTest(unittest.TestCase): "By itself, this tests that file parsed without exception." cls.root = root = Tk() root.withdraw() - helpfile = join(abspath(dirname(dirname(__file__))), 'help.html') + helpfile = join(dirname(dirname(abspath(__file__))), 'help.html') cls.frame = help.HelpFrame(root, helpfile) @classmethod