Skip to content

Commit 8f02a8c

Browse files
committed
fixup
1 parent b86cf6b commit 8f02a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frog_wrapper.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def installdata(targetdir=None, frogdataversion=FROGDATAVERSION, uctodataversion
262262
if textcatpath[-1] == '/': textcatpath = textcatpath[:-1]
263263
if textcatpath != "/usr/share/libexttextcat":
264264
data = open(f"{uctodir}/textcat.cfg",'r',encoding='utf-8').read()
265-
with open(f"{uctodir}/textcat.cfg",'w',encoding='utf-8').read()
265+
with open(f"{uctodir}/textcat.cfg",'w',encoding='utf-8'):
266266
f.write(data.replace("/usr/share/libexttextcat", textcatpath))
267267
else:
268268
print("Language detection will not be available unless you install libexttextcat and rerun installdata(). Libexttextcat was not found. If it is in a non-standard location, set environment variable TEXTCATPATH (defaults to /usr/share/libexttextcat) prior to calling installdata()", file=sys.stderr)

0 commit comments

Comments
 (0)