From 9fe0d134cbfe95802197283a67013c65ddd7d737 Mon Sep 17 00:00:00 2001 From: Rene Hopf Date: Sat, 19 Mar 2022 15:53:57 +0100 Subject: [PATCH] memo files for reports(.frx) end with .frt --- dbfread/memo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbfread/memo.py b/dbfread/memo.py index 024a5c1..449a6bb 100644 --- a/dbfread/memo.py +++ b/dbfread/memo.py @@ -168,7 +168,7 @@ def __getitem__(self, index): def find_memofile(dbf_filename): - for ext in ['.fpt', '.dbt']: + for ext in ['.fpt', '.dbt', '.frt']: name = ifind(dbf_filename, ext=ext) if name: return name @@ -177,7 +177,7 @@ def find_memofile(dbf_filename): def open_memofile(filename, dbversion): - if filename.lower().endswith('.fpt'): + if filename.lower().endswith('.fpt') or filename.lower().endswith('.frt'): return VFPMemoFile(filename) else: # print('######', dbversion)