comparison hgext/inotify/server.py @ 6994:bf727bab38b9

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'
author Brendan Cully <brendan@kublai.com>
date Tue, 19 Aug 2008 15:36:03 -0700
parents c86207d41512
children 9c4e488f105e
comparison
equal deleted inserted replaced
6993:b9d012ce8578 6994:bf727bab38b9
10 from mercurial import osutil, ui, util 10 from mercurial import osutil, ui, util
11 import common 11 import common
12 import errno, os, select, socket, stat, struct, sys, time 12 import errno, os, select, socket, stat, struct, sys, time
13 13
14 try: 14 try:
15 import hgext.inotify.linux as inotify 15 import linux as inotify
16 from hgext.inotify.linux import watcher 16 from linux import watcher
17 except ImportError: 17 except ImportError:
18 print >> sys.stderr, '*** native support is required for this extension' 18 print >> sys.stderr, '*** native support is required for this extension'
19 raise 19 raise
20 20
21 class AlreadyStartedException(Exception): pass 21 class AlreadyStartedException(Exception): pass