Skip to content

Commit 69b78cc

Browse files
committed
2 parents 3cf495f + 90a2f87 commit 69b78cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wllvm/filetype.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def getFileType(cls, fileName):
3737
fileP = Popen(['file', os.path.realpath(fileName)], stdout=PIPE)
3838
output = fileP.communicate()[0]
3939
foutput = output.decode()
40+
foutput = foutput.split(' ', 1)[1] # Strip file path
4041

4142
if 'ELF' in foutput and 'executable' in foutput:
4243
retval = cls.ELF_EXECUTABLE

0 commit comments

Comments
 (0)