-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
Style unit suffix validation #706
Changes from 7 commits
a209a91
0cedad2
06e7d0a
0426ee5
f1ad8b7
2f5583c
5072750
409ec1d
7c2e429
e1b26ac
ee42539
c3ab4b7
1ee847a
ccb0536
5e36ed1
454835d
4bc2dde
4fc96f7
ca1248d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from pathlib import Path | ||
|
||
from qgreenland.constants.paths import ANCILLARY_DIR | ||
|
||
|
||
def get_style_filepath(style_name: str) -> Path: | ||
"""Generate a Path object for style file represented by `style_name`.""" | ||
return ANCILLARY_DIR / "styles" / (style_name + ".qml") | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrated from
_style_filepath
inconfig/layer.py