<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - IJ paths are not set when running from console."
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=1110">1110</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>IJ paths are not set when running from console.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>ImageJ
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Common
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>ctrueden@wisc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>radoslaw@ejsmont.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>imagej-bugs@imagej.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 ---</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>