diff --git a/python/helpers/pycharm/pycharm_load_entry_point.py b/python/helpers/pycharm/pycharm_load_entry_point.py index 5eadeb1a3516..5a89976f789c 100644 --- a/python/helpers/pycharm/pycharm_load_entry_point.py +++ b/python/helpers/pycharm/pycharm_load_entry_point.py @@ -5,8 +5,8 @@ if __name__ == '__main__': dist = os.environ.get("PYCHARM_EP_DIST") name = os.environ.get("PYCHARM_EP_NAME") if dist == "ipython" and name == "ipython": - from IPython import start_ipython - f = start_ipython - else: - f = load_entry_point(dist, "console_scripts", name) + from IPython import start_ipython + f = start_ipython + else: + f = load_entry_point(dist, "console_scripts", name) sys.exit(f())