~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: John Arbash Meinel
  • Date: 2010-04-13 20:25:54 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: john@arbash-meinel.com-20100413202554-6ypop7tjvblfj933
Change the import check so it actually works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd
 
1
# Copyright 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
65
65
        # loggerhead internal code will try to 'import loggerhead', so
66
66
        # let's put it on the path if we can't find it in the existing path
67
67
        try:
68
 
            import loggerhead
 
68
            import loggerhead.apps.transport
69
69
        except ImportError:
70
70
            import os.path, sys
71
71
            sys.path.append(os.path.dirname(__file__))