mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-07 11:21:14 +02:00
close version file after reading
This commit is contained in:
+2
-1
@@ -23,7 +23,8 @@ from openram import options
|
||||
|
||||
|
||||
from openram import OPENRAM_HOME
|
||||
VERSION = open(OPENRAM_HOME + "/../VERSION").read().rstrip()
|
||||
with open(OPENRAM_HOME + "/../VERSION", "r", encoding="utf-8") as version_file:
|
||||
VERSION = version_file.read().rstrip()
|
||||
NAME = "OpenRAM v{}".format(VERSION)
|
||||
USAGE = "sram_compiler.py [options] <config file>\nUse -h for help.\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user