-
Notifications
You must be signed in to change notification settings - Fork 373
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
Fix open photogrammetry example not working on Windows #3705
Conversation
note to self: create an issue on the pyopf project |
There you go |
@@ -30,7 +30,7 @@ | |||
|
|||
any_todo_pattern = re.compile(r"TODO\(.*\)") | |||
legal_todo_inner_pattern = re.compile( | |||
r"TODO\(((?:[a-zA-Z\-_/]+)?#\d+|[a-zA-Z]+)(?:,\s*((?:[a-zA-Z\-_/]+)?#\d+|[a-zA-Z]+))*\)" | |||
r"TODO\(((?:[a-zA-Z\-_/]+[a-zA-Z\-_/\d]+)?#\d+|[a-zA-Z]+)(?:,\s*((?:[a-zA-Z\-_/]+)?#\d+|[a-zA-Z]+))*\)" |
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.
this is over-complicated. so much unnecessary stuff in there
TODO\([\w/-]*(#\d+)?\)
should suffice
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.
... I gonna ignore this for now and merge ahead. Users deserve this sample working on windows, independent of this regex 😄
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.
I'll fix it then
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.
should be fixed in Pix4D/pyopf#9 ;) thanks
What
Fixes
python .\examples\python\open_photogrammetry_format\main.py
on WindowsWas getting
before. With the fix here it runs fine
Checklist