Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgtk: symlink check broken in frozen builds

Changeset f64d63c55a65

Parent 005aa71e51e5

by Steve Borho

Changes to one file · Browse files at f64d63c55a65 Showing diff from parent 005aa71e51e5 Diff from another changeset...

Change 1 of 1 Show Entire File hgtk Stacked
 
6
7
8
9
10
 
 
 
 
 
 
 
 
 
 
 
 
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
6
7
8
 
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
28
29
30
 
 
 
 
 
 
31
32
33
@@ -6,24 +6,28 @@
 # Copyright (C) 2008 TK Soh <teekaysoh@gmail.com>  #   -# if hasattr(sys, "frozen"): -# os.environ['PATH'] += '' +import os +import sys + +if hasattr(sys, "frozen"): + pass + # os.environ['PATH'] += '' +else: + # if hgtk is a symlink, insert symlink target directory in sys.path + thgpath = os.path.dirname(os.path.realpath(__file__)) + testpath = os.path.join(thgpath, 'thgutil') + if os.path.isdir(testpath) and thgpath not in sys.path: + sys.path.insert(0, thgpath) +    import pygtk  pygtk.require('2.0')  import gtk    from mercurial import demandimport; demandimport.enable() -import os  import sys  import cStringIO   -# if hgtk is a symlink, insert symlink target directory in sys.path -thgpath = os.path.dirname(os.path.realpath(__file__)) -if os.path.isdir(os.path.join(thgpath, 'thgutil')): - if thgpath not in sys.path: - sys.path.insert(0, thgpath) -  try:   import hggtk.hgtk  except ImportError: