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.
1 parent 1f7afc6 commit 1ac6659Copy full SHA for 1ac6659
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