Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc4, 0.4, and 0.4.1

hgtk: support debugging with pdb.py

Changeset b4c14789c35f

Parent bf55d8c82d5a

by TK Soh

Changes to one file · Browse files at b4c14789c35f Showing diff from parent bf55d8c82d5a Diff from another changeset...

Change 1 of 1 Show Entire File contrib/​hgtk Stacked
 
50
51
52
53
54
55
56
57
 
 
 
 
 
 
58
59
60
 
50
51
52
 
 
 
 
 
53
54
55
56
57
58
59
60
61
@@ -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