mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
* Remote interpreter user almost always need to have deployment over path mapping. * helper result splitted because deployment config needs home dir and deployment path
15 lines
443 B
Python
15 lines
443 B
Python
# 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_name)
|
|
break
|
|
else:
|
|
project_name += "_"
|