-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue with path in windows #10
Comments
Adding |
Same thing is happening with |
Sorry, I need to see the two results side by side:
Now I'm confused. Could you point out or explain differently what the issue is exactly? The only thing I'm seeing is the space after the colon in the second section, but I guess that's just a copy-paste thing, no? |
Does it help calling parse_path(r"U:\VAMP\guerard\LS7\new copy\SmalltileandZ - Copy.czi") Otherwise Python interprets |
Ah, I see the @imagejan is probably right, calling it like this should work - the question is then rather if we can enforce this from within the function (as in, avoiding the string to be interpreted wrongly), or if that's already too late. ➡️ I'll need to look into this! |
I guess replacing the |
@lguerard could you create an additional test for this (preferred), or modify the existing one here: python-imcflibs/tests/test_pathtools.py Lines 37 to 44 in 2affd76
|
The
parse_path
functions sometimes creates issues on windows when parsing a direct path copied."U:\VAMP\guerard\LS7\new copy\SmalltileandZ - Copy.czi"
returns'path':'U:\\VAMP\\guerard\\LS7\\new copy\\'
parse_path("U:\VAMP\guerard\LS7\new copy\SmalltileandZ - Copy.czi")
gives'path': 'U:\\VAMP\\guerard\\LS7\new copy\\'
which then later can cause issuesThe text was updated successfully, but these errors were encountered: