Fix devel mode for the webgui.

This commit is contained in:
Kevin McCarthy 2007-10-23 09:02:55 -07:00
parent 04636b8ae7
commit 60d46ac660

View File

@ -57,11 +57,10 @@ def daemonize():
# environment to load a different configuration and avoid becoming
# a daemon
devel = False
if os.path.exists(os.path.join(os.path.dirname(__file__), "Makefile")):
if os.path.exists(os.path.join(os.path.dirname(__file__), "Makefile.am")):
devel = True
if not devel:
sys.path.append("/usr/share/ipa/")
sys.path.append("/usr/share/ipa/")
# this must be after sys.path is changed to work correctly
import pkg_resources