Mercurial > piecrust2
diff garcon/documentation.py @ 800:d4b9d86d3d6f
cm: Allow generating documentation from inside the virtualenv.
Hopefully it goes well...?
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 08 Sep 2016 19:28:34 -0700 |
parents | a409a7bb3948 |
children | 22cf13b86cc3 |
line wrap: on
line diff
--- a/garcon/documentation.py Wed Sep 07 23:15:53 2016 -0700 +++ b/garcon/documentation.py Thu Sep 08 19:28:34 2016 -0700 @@ -27,10 +27,6 @@ if not venv_dir: venv_dir = os.path.join(base_dir, 'venv') - if sys.prefix == venv_dir: - raise Exception( - "Don't run this script in the PieCrust virtual environment.") - if not os.path.isdir(venv_dir): print("Creating virtual environment in: %s" % venv_dir) run('virtualenv -p python3 "%s"' % venv_dir)