MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / _get_root_path

Function _get_root_path

mssqlcli/telemetry.py:231–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229@decorators.suppress_all_exceptions(fallback_return='')
230def _get_stack_trace():
231 def _get_root_path():
232 dir_path = os.path.dirname(os.path.realpath(__file__))
233 head, tail = os.path.split(dir_path)
234 while tail and tail != 'mssql-cli':
235 head, tail = os.path.split(head)
236 return head
237
238 def _remove_root_paths(s):
239 site_package_regex = re.compile('.*\\\\site-packages\\\\')

Callers 1

_remove_root_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected