From a52a146f2749e8bd3a9b394dce55aebf64f3bff0 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 9 Nov 2020 13:37:05 +0100 Subject: setup.py: Fix .dektop file generation --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ca1d8a3..cf826cd 100755 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ iFile = open('data/applications/{}.desktop.in'.format(APPNAME), 'r') oConfigParser = configparser.ConfigParser() oConfigParser.optionxform = str oConfigParser.read_file(iFile) +iFile.close() for strRoot, lstDirnames, lstFilenames in os.walk('po'): @@ -36,7 +37,7 @@ for sSection in oConfigParser.sections(): oFile = open('data/applications/{}.desktop'.format(APPNAME), 'w') oConfigParser.write(oFile, False) -oFile.truncate +oFile.close() for strRoot, lstDirnames, lstFilenames in os.walk('po'): -- cgit v1.2.3