()
| 229 | @decorators.suppress_all_exceptions(fallback_return='') |
| 230 | def _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\\\\') |
no outgoing calls
no test coverage detected