Created
September 24, 2010 06:46
-
-
Save jone/594953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun find-buildout-root (path) | |
"Search PATH for a buildout root. | |
If a buildout root is found return the path, othwise return | |
nil." | |
;; find the most top one, not the first one | |
(let ((dir default-directory) | |
(previous nil)) | |
(while dir | |
(let ((dir (find-parent-with-file dir "boostrap.py"))) | |
(if dir | |
(let ((previous dir))) | |
(let ((dir nil))))))) | |
previous) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment