Re: DirectoryChooser and the path separator
Posted by
Wayne Rasband-2 on
Sep 12, 2018; 3:34pm
URL: http://imagej.273.s1.nabble.com/DirectoryChooser-and-the-path-separator-tp5021165p5021171.html
> On Sep 12, 2018, at 4:21 AM, Aryeh Weiss <
[hidden email]> wrote:
>
> I have the following that runs on a Windows 7 - 64 bit OS
>
> inputDirPath = DirectoryChooser("choose a directory").getDirectory()
> print inputDirPath
>
> and the output of this is:
>
> C:\User\Desktop\New folder/
This should not be a problem since both “/“ and “\” are accepted in Windows file paths.
-wayne
> Notice that the path separators are Windows-like ("\") except for the rightmost character ("/").
>
> I can strip that character and work around this, but is it a bug, or is there an option that I need to set?
>
> Tnx in advance
> --aryeh
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html