# HG changeset patch # User Brendan Cully # Date 2008-08-19 22:36:03 # Node ID b5a6fce0bc29c15decdbd19f312a8c9fa20ba535 # Parent b77c25c2d6c0de5ca9589de11091ab1c4e950689 Use relative imports in inotify.server. Fixes an import failure I was getting under hgtk and hgweb: *** failed to import extension inotify: 'module' object has no attribute 'inotify' diff --git a/hgext/inotify/server.py b/hgext/inotify/server.py --- a/hgext/inotify/server.py +++ b/hgext/inotify/server.py @@ -12,8 +12,8 @@ import common import errno, os, select, socket, stat, struct, sys, time try: - import hgext.inotify.linux as inotify - from hgext.inotify.linux import watcher + import linux as inotify + from linux import watcher except ImportError: print >> sys.stderr, '*** native support is required for this extension' raise