From 0394f40318c1f683f0233c991c8136acec9227bf Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Thu, 15 Sep 2016 00:57:37 +0300 Subject: [PATCH] PY-20733: Add deployment automatically if user agree * Remote interpreter user almost always need to have deployment over path mapping. * helper result splitted because deployment config needs home dir and deployment path --- python/helpers/pycharm/_jb_find_best_place.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/helpers/pycharm/_jb_find_best_place.py b/python/helpers/pycharm/_jb_find_best_place.py index 1d1e04ce66d0..73008a68c518 100644 --- a/python/helpers/pycharm/_jb_find_best_place.py +++ b/python/helpers/pycharm/_jb_find_best_place.py @@ -1,14 +1,14 @@ # First arg is project name. It searches for best place for project - +# Result is current_dir \n project_name. So, best place is current_dir/project_name import os, sys project_name = sys.argv[1] current_folder = os.getcwd() - +print(current_folder) while True: project_folder = os.path.join(current_folder, project_name) if not os.path.exists(project_name): - print project_folder + print(project_name) break else: project_name += "_"