We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cf495f + 90a2f87 commit 69b78ccCopy full SHA for 69b78cc
wllvm/filetype.py
@@ -37,6 +37,7 @@ def getFileType(cls, fileName):
37
fileP = Popen(['file', os.path.realpath(fileName)], stdout=PIPE)
38
output = fileP.communicate()[0]
39
foutput = output.decode()
40
+ foutput = foutput.split(' ', 1)[1] # Strip file path
41
42
if 'ELF' in foutput and 'executable' in foutput:
43
retval = cls.ELF_EXECUTABLE
0 commit comments