From a44ce6b7dfaba3df1902605dfa20b95311582574 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 14 Jan 2014 00:06:01 +0100 Subject: [PATCH] beautify __main__ --- jedi/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jedi/__main__.py b/jedi/__main__.py index fc10ee03..285af7fc 100644 --- a/jedi/__main__.py +++ b/jedi/__main__.py @@ -1,7 +1,8 @@ from sys import argv +from os.path import join, dirname, abspath + if len(argv) == 2 and argv[1] == 'repl': # don't want to use __main__ only for repl yet, maybe we want to use it for # something else. So just use the keyword ``repl`` for now. - from os import path - print(path.join(path.dirname(path.abspath(__file__)), 'replstartup.py')) + print(join(dirname(abspath(__file__)), 'replstartup.py'))