Skip to content

Commit 27ae820

Browse files
committed
Minor fix
- FIXED: Files with capitalised name ending are not loaded
1 parent 2dd24ac commit 27ae820

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examplescripts/pycorn-bin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,12 @@ def main2():
362362
for fname in args.inp_res:
363363
if args.inject == None:
364364
args.inject = -1
365-
if fname[-3:] == "zip":
365+
if (fname[-3:]).lower() == "zip":
366366
fdata = pc_uni6(fname)
367367
fdata.load()
368368
fdata.xml_parse()
369369
fdata.clean_up()
370-
if fname[-3:] == "res":
370+
if (fname[-3:]).lower() == "res":
371371
fdata = pc_res3(fname, reduce = args.reduce, inj_sel=args.inject)
372372
fdata.load()
373373
if args.extract == 'csv':

0 commit comments

Comments
 (0)