Skip to content
Snippets Groups Projects
Commit 19306a04ac15 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: allow importing from local directory

no path in that case
parent cd784cd0d7b8
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
model_filenames: List[Tuple[str, str, str]] = list() model_filenames: List[Tuple[str, str, str]] = list()
# files need to be named according to the following regexp # files need to be named according to the following regexp
pattern = re.compile( pattern = re.compile(
r"(?P<path>.*/)" r"(?P<path>.*/)?"
r"(?:[\d\s\w_-]*\s)?" r"(?:[\d\s\w_-]*\s)?"
r"(?P<model>[\w.]+?)" r"(?P<model>[\w.]+?)"
r"(?:@(?P<lang>\w{2,3}(?:@latin|_\w{2})))?" r"(?:@(?P<lang>\w{2,3}(?:@latin|_\w{2})))?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment