Permalink
Browse files

Clarify argument name in build.

  • Loading branch information...
joeyespo committed Jan 6, 2013
1 parent 12f0f31 commit ac9bde334394b05f24f1d3398662192e66328328
Showing with 4 additions and 4 deletions.
  1. +4 −4 gitpress/building.py
View
@@ -6,16 +6,16 @@
default_out_directory = '_site'
-def build(directory=None, out_directory=None):
+def build(content_directory=None, out_directory=None):
"""Builds the site from its content and presentation repository."""
- directory = directory or '.'
+ content_directory = content_directory or '.'
out_directory = os.path.abspath(out_directory or default_out_directory)
- repo = require_repo(directory)
+ repo = require_repo(content_directory)
# Prevent user mistakes
if out_directory == '.':
raise ValueError('Output directory must be different than the source directory: ' + repr(out_directory))
- if os.path.basename(os.path.relpath(out_directory, directory)) == '..':
+ if os.path.basename(os.path.relpath(out_directory, content_directory)) == '..':
raise ValueError('Output directory must not contain the source directory: ' + repr(out_directory))
# TODO: read config

0 comments on commit ac9bde3

Please sign in to comment.