Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable hgtk: os.P_DETACH is only available on Windows

Changeset b91ff37fb596

Parent 8d4247a6e83d

by Steve Borho

Changes to one file · Browse files at b91ff37fb596 Showing diff from parent 8d4247a6e83d Diff from another changeset...

 
97
98
99
 
 
 
100
101
102
 
103
104
105
 
97
98
99
100
101
102
103
104
 
105
106
107
108
@@ -97,9 +97,12 @@
  args = [sys.executable] + sys.argv   if os.name == 'nt':   args = ['"%s"' % arg for arg in args] + mode = os.P_DETACH + else: + mode = os.P_NOWAIT   env = os.environ.copy()   env['THG_HGTK_SPAWN'] = '1' - os.spawnve(os.P_DETACH, sys.executable, args, env) + os.spawnve(mode, sys.executable, args, env)   sys.exit(0)    def get_list_from_file(filename):