# HG changeset patch # User Ludovic Chabant # Date 1473388114 25200 # Node ID d4b9d86d3d6f887f5156ebc0522135bf663d83bc # Parent 59147dd04d493639728aad0137115e7fbd4118fc cm: Allow generating documentation from inside the virtualenv. Hopefully it goes well...? diff -r 59147dd04d49 -r d4b9d86d3d6f garcon/documentation.py --- 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)