[Freeipa-devel] [PATCH] fix webgui devel mode

Kevin McCarthy kmccarth at redhat.com
Tue Oct 23 16:05:31 UTC 2007


The recent refactor for ipa-python added a dependency on ipaserver
inside ipacontroller.py

Unfortunately, ipaserver is only inside /usr/share/ipa

So, I've made /usr/share/ipa always included in the python path in order
for the devel mode to work.

-Kevin

-------------- next part --------------
# HG changeset patch
# User Kevin McCarthy <kmccarth at redhat.com>
# Date 1193155375 25200
# Node ID dd94e5e53c7cbfb59c1bfa5fca86923cb950bd57
# Parent  c8cd28ecb998e5bb85b0cea83ead818efd47c841
Fix devel mode for the webgui.

diff -r c8cd28ecb998 -r dd94e5e53c7c ipa-server/ipa-gui/ipa-webgui
--- a/ipa-server/ipa-gui/ipa-webgui	Mon Oct 22 14:28:29 2007 -0700
+++ b/ipa-server/ipa-gui/ipa-webgui	Tue Oct 23 09:02:55 2007 -0700
@@ -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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4054 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20071023/62aee10c/attachment.bin>


More information about the Freeipa-devel mailing list