1
0
forked from VimPlug/jedi

beautify __main__

This commit is contained in:
Dave Halter
2014-01-14 00:06:01 +01:00
parent a9efa3db33
commit a44ce6b7df

View File

@@ -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'))