Ignore python scripts
This commit is contained in:
@@ -118,6 +118,7 @@ def find_binary(listdir):
|
||||
executable = stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH
|
||||
for filename in os.listdir(listdir):
|
||||
if os.path.isfile(filename):
|
||||
if os.path.splitext(filename)[1] != ".py":
|
||||
st = os.stat(filename)
|
||||
mode = st.st_mode
|
||||
big = st.st_size > (10 * 1024 * 1024) # 10MB
|
||||
|
||||
Reference in New Issue
Block a user