Skip to content

Commit 1ac6659

Browse files
committed
Fixed issue where keywords for determining file type were in file path
1 parent 1f7afc6 commit 1ac6659

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)