From: Sharif Olorin Date: Tue, 11 Mar 2014 09:44:54 +0000 (+1100) Subject: Update Python hashbang to respect environment X-Git-Tag: v0.79~161^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=861e62aa5d7c1cb7eeb7d01fcf6530fb25e56b4a;p=ceph.git Update Python hashbang to respect environment The /usr/bin/python hashbang causes doc builds to fail when Python3 is the default Python and Python2 is being used from within a virtualenv or Pythonbrew environment. Signed-off-by: Sharif Olorin --- diff --git a/doc/scripts/gen_state_diagram.py b/doc/scripts/gen_state_diagram.py index 603cb9c821e..a1830826500 100755 --- a/doc/scripts/gen_state_diagram.py +++ b/doc/scripts/gen_state_diagram.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import re import sys