mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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
This commit is contained in:
@@ -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 += "_"
|
||||
|
||||
Reference in New Issue
Block a user