Login  Register

DirectoryChooser and the path separator

Posted by Aryeh Weiss on Sep 12, 2018; 8:21am
URL: http://imagej.273.s1.nabble.com/DirectoryChooser-and-the-path-separator-tp5021165.html

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/

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

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html