Browse files

Cope with (>= 0.10) projects which lack a project/ file.

  • Loading branch information...
1 parent 400e993 commit 8baa80a6630aa5edef963b93c0039929e5561d00 @ieure committed Sep 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/elisp/ensime-sbt.el
@@ -169,7 +169,8 @@
(defun ensime-sbt-project-dir-p (path)
"Does a project/ exists in the given path."
- (file-exists-p (concat path "/project/")))
+ (or (file-exists-p (concat path "/project/"))
+ (file-exists-p (concat path "/build.sbt"))))
(defun ensime-sbt-at-root (path)
"Determine if the given path is root."

1 comment on commit 8baa80a

Will be fixed in next release (using a slightly more general strategy).

Please sign in to comment.