From 60d46ac6607b3ba1e2b525b7f2f1a64b08f778c6 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 23 Oct 2007 09:02:55 -0700 Subject: [PATCH] Fix devel mode for the webgui. --- ipa-server/ipa-gui/ipa-webgui | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ipa-server/ipa-gui/ipa-webgui b/ipa-server/ipa-gui/ipa-webgui index 9adb5fad1..f16089088 100644 --- a/ipa-server/ipa-gui/ipa-webgui +++ b/ipa-server/ipa-gui/ipa-webgui @@ -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