diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-04 21:40:33 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-04 21:40:33 +0000 |
commit | 6dd5a379dd5b01fd4f47c525a83e42a638954234 (patch) | |
tree | 97e31cd41f7b9a00d16ca5bffd4d19dc4ab1d3a7 /pcmcia.py | |
parent | 45e67c3d48ade0a1717f3cf3e81bca733ae849b7 (diff) | |
download | anaconda-6dd5a379dd5b01fd4f47c525a83e42a638954234.tar.gz anaconda-6dd5a379dd5b01fd4f47c525a83e42a638954234.tar.xz anaconda-6dd5a379dd5b01fd4f47c525a83e42a638954234.zip |
look for probe in all the right ways
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-x | pcmcia.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,11 +1,10 @@ #!/usr/bin/python -import iutil, string +import iutil, string, os def pcicType(test = 0): - if (test): - loc = "/sbin/probe" - else: + loc = "/sbin/probe" + if not os.access(loc, os.X_OK): loc = "/usr/sbin/probe" result = iutil.execWithCapture(loc, [ loc ]) |