1. Augie Fackler
  2. nosemacs
  3. Issues
Issue #2 new

project root detection flawed

Jason Pellerin
created an issue

Related to issue 1 -- project root detection depends on the test runner being 2 dirs deep (eco/bin/test or eggs/bin/test):

{{{ (where (expand-file-name "../.." (file-name-directory nose))) }}}

It might be better to do another backwards search from the target file, looking for any one of setup.py, setup.cfg, or .noseids. Then if none of those is found, either fall back on the dir containing the target file, or if target file is in a package, back up to the package root.

Comments (1)

  1. Log in to comment