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

thgtaskbar: insert binary installer gtk path when frozen

Changeset 5987f2b329c9

Parent f464a38ec059

by Steve Borho

Changes to one file · Browse files at 5987f2b329c9 Showing diff from parent f464a38ec059 Diff from another changeset...

Change 1 of 1 Show Entire File thgtaskbar.py Stacked
 
25
26
27
 
 
 
 
 
28
29
30
 
25
26
27
28
29
30
31
32
33
34
35
@@ -25,6 +25,11 @@
 from thgutil import thread2, paths, shlib    if hasattr(sys, "frozen"): + # Insert PATH to binary installer gtk directory + from thgutil import paths + gtkpath = os.path.join(paths.bin_path, 'gtk') + os.environ['PATH'] = os.pathsep.join([gtkpath, os.environ['PATH']]) + # Give stdout/stderr closed attributes to prevent ui.py errors   sys.stdout.closed = True   sys.stderr.closed = True