mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-29 16:54:00 +02:00
Very minor bugfixes (Rev 1.21)
This commit is contained in:
parent
25c1fb4694
commit
5cc2dac181
@ -1,5 +1,5 @@
|
||||
#!/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 re
|
||||
@ -11,11 +11,11 @@ tabwdth = 4
|
||||
|
||||
#megaclipath = "/opt/MegaRAID/MegaCli/MegaCli64"
|
||||
|
||||
def is_exe(fpath):
|
||||
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
||||
|
||||
def which(program):
|
||||
import os
|
||||
def is_exe(fpath):
|
||||
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
||||
|
||||
fpath, fname = os.path.split(program)
|
||||
if fpath:
|
||||
if is_exe(program):
|
||||
|
Loading…
x
Reference in New Issue
Block a user