Permalink
Browse files

Add support for current working directory as project dir.

  • Loading branch information...
1 parent bc6739a commit 55ebf170d896a0146f6c1f739b1fa739e0664da3 @perifer perifer committed May 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 fabric/fabfile.py
View
@@ -225,7 +225,8 @@ def get_project_dir(project):
# Match a subfolder of projects_dir in the current working directory.
project_dir = re.match("(%s[^%s]*)" % (parent, os.sep), cwd).group(0)
except:
- abort("This doesn't seem to be a project directory.")
+ # Fall back to current working directory.
+ project_dir = cwd
return project_dir

0 comments on commit 55ebf17

Please sign in to comment.