Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Set the include_site_packages conditionally so we have a chance to ov…
Browse files Browse the repository at this point in the history
…erride it in a template inheriting from grok template.
  • Loading branch information
vincentfretin committed Jan 2, 2011
1 parent 5c05650 commit 2bec663
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion grokproject/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def check_vars(self, vars, cmd):

vars['package_directory'] = os.path.abspath(os.path.join(
os.getcwd(), vars['project']))
vars['include_site_packages'] = 'false'

include_site_packages = vars.get('include_site_packages')
if include_site_packages is None:
vars['include_site_packages'] = 'false'

return vars

Expand Down

0 comments on commit 2bec663

Please sign in to comment.