From d032b0e0e9cda781ea9f9755c54bb29dd24df05b Mon Sep 17 00:00:00 2001 From: Alastair Holland Date: Sun, 3 May 2020 01:15:46 +0100 Subject: [PATCH] Closed env file on setup --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bcdc49c..81c4b4f 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,9 @@ def environment(): '''Verify the data has been written''' print("\nVerifying data..") verify = open(".env") - if data == verify.read(): + readData = verify.read() + verify.close() + if data == readData: print("Data written successfully") return else: