summaryrefslogtreecommitdiffstats
path: root/pcmcia.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-04 21:40:33 +0000
committerErik Troan <ewt@redhat.com>2000-05-04 21:40:33 +0000
commit6dd5a379dd5b01fd4f47c525a83e42a638954234 (patch)
tree97e31cd41f7b9a00d16ca5bffd4d19dc4ab1d3a7 /pcmcia.py
parent45e67c3d48ade0a1717f3cf3e81bca733ae849b7 (diff)
downloadanaconda-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-xpcmcia.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pcmcia.py b/pcmcia.py
index 5904f76a0..3805f95c5 100755
--- a/pcmcia.py
+++ b/pcmcia.py
@@ -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 ])