NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1110 - IJ paths are not set when running from console.
IJ paths are not set when running from console.
Status: NEW
Product: ImageJ
Classification: Unclassified
Component: Common
unspecified
Macintosh Mac OS
: P5 major
Assigned To: Curtis Rueden
Depends on:
Blocks:
 
Reported: 2015-07-10 04:08 CDT by Radoslaw Ejsmont
Modified: 2015-07-10 04:08 CDT
1 user (show)

See Also:

Description Radoslaw Ejsmont 2015-07-10 04:08:22 CDT
Hi,

IJ.getDirectory returns null/None for most paths when run from console:

/Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --headless ~/test.py

home directory: /Users/u0078517/
startup directory: null/
imagej directory: null/
plugins directory: None
macros directory: None
luts directory: null/luts/
temp directory: /tmp/
current directory: None
default directory: None
image directory: None

This affects plenty of plugins :(

--- BEGIN test.py ---
from ij import IJ
for adir in ["home", "startup", "imagej", "plugins", "macros", "luts", "temp", "current", "default", "image"]:
    print adir + " directory: " + str(IJ.getDirectory(adir))
--- END test.py ---