-
Notifications
You must be signed in to change notification settings - Fork 42
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
directory problem on Windows #62
Comments
as opposed to
so the easiest (certainly not prettiest) way would be to special case windows and change the path in What would - as far as I can tell - work also (and be much cleaner) is changing the behaviour of all methods that return paths (e.g. |
@Varanas it looks like the only place filenames are really used in this package is the |
Notice how just some of the backslashes disappear in the original post. I did what @Varanas and @tkelman have probably done and traced this strange behaviour to tkwidget.jl:91 Using 0.3.11 and the very oldest version of the package, the same problem seems to have been present on Windows since .... 32 bit to 64 bit perhaps? Placing format checks inside of the image function should work if there is no filesystem where \ may be part of the long filename. Perhaps this bad behaviour is an acceptable one, or perhaps additional checks in Image would cover that. ...but can't such unexpected behaviour from a core function easily lead to erratic behaviour from tk in other cases too? Is the fault really with tk, or in the called library? |
Fixed by #147 I guess. |
running tests.jl
img = Image(Pkg.dir("Tk", "examples", "weather-overcast.gif"))
ERROR: TclError("couldn't open "C:UsersKees.juliaTkexamplesweather-overcast.gif": no such file or directory")
in tcl_eval at C:\Users\Kees.julia\Tk\src\tkwidget.jl:97
in tcl_eval at C:\Users\Kees.julia\Tk\src\tkwidget.jl:91
in tcl at C:\Users\Kees.julia\Tk\src\core.jl:48
in Image at C:\Users\Kees.julia\Tk\src\widgets.jl:321
Pkg.dir returns:
"C:\Users\Kees.julia\Tk\examples\weather-overcast.gif"
the backslashes disappear.
The text was updated successfully, but these errors were encountered: