We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parser is naively implemented.
thoughtspot_tml/src/thoughtspot_tml/utils.py
Line 87 in 60d218e
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from thoughtspot_tml import utils >>> import pathlib >>> >>> p = pathlib.Path("/Users/first.last/Downloads/my liveboard in 9.0 + tabs.liveboard.tml") >>> p.suffixes ['.0 + tabs', '.liveboard', '.tml'] >>> >>> utils.determine_tml_type(path=p) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\work\thoughtspot\thoughtspot_tml\src\thoughtspot_tml\utils.py", line 117, in determine_tml_type raise TMLError("\n".join(lines)) thoughtspot_tml.exceptions.TMLError: could not parse TML type from 'info' or 'path', got '0 + tabs' from path, '\Users\first.last\Downloads\my liveboard in 9.0 + tabs.liveboard.tml' >>> >>> name_and_type_suffix, _, _ = p.name.rpartition(".tml") >>> name_and_type_suffix.rpartition(".") ('my liveboard in 9.0 + tabs', '.', 'liveboard') >>> >>> name, _, tml_type = name_and_type_suffix.rpartition(".") >>> tml_type 'liveboard' >>>
The text was updated successfully, but these errors were encountered:
fix for #17 - determine tml type if path name contains a period
aa8ed30
Implemented as part of v2.0.13
Sorry, something went wrong.
boonhapus
No branches or pull requests
The parser is naively implemented.
thoughtspot_tml/src/thoughtspot_tml/utils.py
Line 87 in 60d218e
The text was updated successfully, but these errors were encountered: