diff options
Diffstat (limited to 'scripts/lib/wic/utils/fs_related.py')
-rw-r--r-- | scripts/lib/wic/utils/fs_related.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/lib/wic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py index d0bc8ee6d3..fb9054d568 100644 --- a/scripts/lib/wic/utils/fs_related.py +++ b/scripts/lib/wic/utils/fs_related.py | |||
@@ -25,24 +25,6 @@ from wic.utils import runner | |||
25 | from wic.utils.errors import * | 25 | from wic.utils.errors import * |
26 | from wic.utils.oe.misc import * | 26 | from wic.utils.oe.misc import * |
27 | 27 | ||
28 | def find_binary_path(binary): | ||
29 | if os.environ.has_key("PATH"): | ||
30 | paths = os.environ["PATH"].split(":") | ||
31 | else: | ||
32 | paths = [] | ||
33 | if os.environ.has_key("HOME"): | ||
34 | paths += [os.environ["HOME"] + "/bin"] | ||
35 | paths += ["/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin"] | ||
36 | |||
37 | for path in paths: | ||
38 | bin_path = "%s/%s" % (path, binary) | ||
39 | if os.path.exists(bin_path): | ||
40 | return bin_path | ||
41 | |||
42 | print "External command '%s' not found, exiting." % binary | ||
43 | print " (Please install '%s' on your host system)" % binary | ||
44 | sys.exit(1) | ||
45 | |||
46 | def makedirs(dirname): | 28 | def makedirs(dirname): |
47 | """A version of os.makedirs() that doesn't throw an | 29 | """A version of os.makedirs() that doesn't throw an |
48 | exception if the leaf directory already exists. | 30 | exception if the leaf directory already exists. |