MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / return_profile

Method return_profile

mod/project/python/pyenv_tool.py:113–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111
112 @staticmethod
113 def return_profile():
114 if os.path.exists('/root/.bash_profile'):
115 return '/root/.bash_profile'
116 if os.path.exists('/root/.bashrc'):
117 return '/root/.bashrc'
118 fd = open('/root/.bashrc', mode="w", encoding="utf-8")
119 fd.close()
120 return '/root/.bashrc'
121
122 # ptah python安装路径
123 def __init__(self, bin_path: str, version: str, env_type: str, **kwargs):

Callers 2

profile_check_useMethod · 0.45
set_profile_envMethod · 0.45

Calls 3

openFunction · 0.85
existsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected