Skip to content

Commit

Permalink
Use load_zenpacks istead of ZenossStartup side-effects
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeacock-zenoss committed Oct 2, 2023
1 parent ecf231f commit f619a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/zenglobalconf
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ def main():
print "--sync-zope-conf only valid with global.conf"
sys.exit(1)
# load zcml for the product
import Products.ZenossStartup
from Products.ZenUtils.zenpackload import load_zenpacks
from Products.Five import zcml
load_zenpacks()
zcml.load_site()
# look up the utility
from zope.component import getUtility
Expand Down

0 comments on commit f619a76

Please sign in to comment.