isValidShell
This commit is contained in:
parent
8c114ea318
commit
e33076ccc9
@ -47,7 +47,7 @@ def isValidShell(shell = ''):
|
|||||||
try:
|
try:
|
||||||
if not os.path.isfile(shell):
|
if not os.path.isfile(shell):
|
||||||
return False
|
return False
|
||||||
if not os.access(shell,os.X_OK)
|
if not os.access(shell,os.X_OK):
|
||||||
return False
|
return False
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user