Issue #1454 new

call the correct interpreter under virtualenv

Kamil Páral
created an issue

I used sphinx for the first time today and "make html" failed because sphinx was not able to import my modules (virtualenv was active). It's because of a hardcoded python interpreter path:

$ head -n1 /usr/bin/sphinx-build 

Why hardcode the path? Simply use this instead:

#!/usr/bin/env python

and the issue is gone - sphinx is now able to find modules even under virtualenv out of the box.

Tested on Fedora 20 with python-sphinx-1.1.3-8.fc20.noarch.

Comments (3)

  1. Log in to comment