mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-30 01:04:02 +02:00
Very minor bugfixes (Rev 1.21)
This commit is contained in:
parent
25c1fb4694
commit
5cc2dac181
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# $Id: megaclisas-status,v 1.20 2015/03/27 03:12:09 root Exp $
|
# $Id: megaclisas-status,v 1.21 2015/03/27 03:21:08 root Exp $
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -11,11 +11,11 @@ tabwdth = 4
|
|||||||
|
|
||||||
#megaclipath = "/opt/MegaRAID/MegaCli/MegaCli64"
|
#megaclipath = "/opt/MegaRAID/MegaCli/MegaCli64"
|
||||||
|
|
||||||
|
def is_exe(fpath):
|
||||||
|
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
||||||
|
|
||||||
def which(program):
|
def which(program):
|
||||||
import os
|
import os
|
||||||
def is_exe(fpath):
|
|
||||||
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
|
||||||
|
|
||||||
fpath, fname = os.path.split(program)
|
fpath, fname = os.path.split(program)
|
||||||
if fpath:
|
if fpath:
|
||||||
if is_exe(program):
|
if is_exe(program):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user