Changeset b4c14789c35f…
Parent bf55d8c82d5a…
by
Changes to one file · Browse files at b4c14789c35f Showing diff from parent bf55d8c82d5a Diff from another changeset...
@@ -50,11 +50,12 @@ try:
# assuming TortoiseHg source layout, with hgtk in contrib
path = os.path.dirname(os.path.realpath(__file__))
- norm = os.path.normpath(os.path.join(path, '..'))
- if norm not in sys.path:
- sys.path.append(norm)
- except NameError: # __file__ is not always available
- pass
+ except NameError:
+ # __file__ not available in pdb mode
+ path = os.path.dirname(sys.argv[0])
+ norm = os.path.normpath(os.path.join(path, '..'))
+ if norm not in sys.path:
+ sys.path.append(norm)
try:
from hggtk import hglib
|
Loading...