comparison stampit/utils.py @ 3:6ef0e769248d

add initial workflow
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 20 Apr 2010 14:12:15 -0700
parents
children 3f9fac577d75
comparison
equal deleted inserted replaced
2:164af2a4d291 3:6ef0e769248d
1 """
2 utility functions
3 """
4
5 import os
6
7 def which(exectuable):
8 for directory in os.environ['PATH'].split(os.pathsep):
9 path = os.path.join(dir, executable)
10 if os.path.exists(path):
11 return path
12
13