Skip to content

Commit

Permalink
Add support for current working directory as project dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
perifer committed May 7, 2012
1 parent bc6739a commit 55ebf17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fabric/fabfile.py
Expand Up @@ -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

Expand Down

0 comments on commit 55ebf17

Please sign in to comment.