comparison hgext/inotify/server.py @ 6909:b5a6fce0bc29

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 f67d1468ac50
children 12163fb21fce
comparison
equal deleted inserted replaced
6908:b77c25c2d6c0 6909:b5a6fce0bc29
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