Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
baijum committed May 19, 2010
1 parent 8ed82e5 commit 1b8a4a9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/zope/mkzeoinstance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,6 @@ def create(self, home, params):
makexfile(runzeo_template, home, "bin", "runzeo", **params)


def which(program):
strpath = os.getenv("PATH")
binpath = strpath.split(os.pathsep)
for dir in binpath:
path = os.path.join(dir, program)
if os.path.isfile(path) and os.access(path, os.X_OK):
if not os.path.isabs(path):
path = os.path.abspath(path)
return path
raise IOError("can't find %r on path %r" % (program, strpath))

def makedir(*args):
path = ""
for arg in args:
Expand Down

0 comments on commit 1b8a4a9

Please sign in to comment.