Mercurial > hg > easyhg
comparison easyhg.py @ 188:07b908b4fa5f
* Set python library path when unbundling extension, generally prefer unbundled copy
author | Chris Cannam |
---|---|
date | Mon, 20 Dec 2010 16:15:43 +0000 |
parents | 98fa31128e9d |
children | c5fceb3fe5b4 |
comparison
equal
deleted
inserted
replaced
187:869825bc8bc4 | 188:07b908b4fa5f |
---|---|
14 # COPYING included with this distribution for more information. | 14 # COPYING included with this distribution for more information. |
15 | 15 |
16 import sys | 16 import sys |
17 from mercurial import ui, getpass, util | 17 from mercurial import ui, getpass, util |
18 from mercurial.i18n import _ | 18 from mercurial.i18n import _ |
19 | |
20 # The value assigned here may be modified during installation, by | |
21 # replacing its default value with another one. We can't compare | |
22 # against its default value, because then the comparison text would | |
23 # get modified as well. So, compare using prefix only. | |
24 # | |
25 easyhg_import_path = 'NO_EASYHG_IMPORT_PATH' | |
26 if not easyhg_import_path.startswith('NO_'): | |
27 sys.path.append(easyhg_import_path) | |
28 | |
19 from PyQt4 import QtGui | 29 from PyQt4 import QtGui |
20 | 30 |
21 easyhg_qtapp = None | 31 easyhg_qtapp = None |
22 | 32 |
23 def uisetup(ui): | 33 def uisetup(ui): |