Coverage for teaser/__init__.py: 44%
16 statements
« prev ^ index » next coverage.py v7.4.4, created at 2025-04-29 16:01 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2025-04-29 16:01 +0000
1'''
2teaser
3=========
5Tool for Energy Analysis and Simulation for Efficient Retrofit
6'''
7import sys
8import os
10__version__ = "1.2.1"
13new_path = os.path.join(os.path.expanduser('~'), ("TEASEROutput"))
14if not os.path.exists(new_path):
15 os.makedirs(new_path)
17if sys.platform.startswith('win'):
18 def read_file(path, mode='r'):
19 fp = open(path, mode)
20 try:
21 data = fp.read()
22 return data
23 finally:
24 fp.close()
25 # hot patch loaded module :-)
26 import mako.util
27 mako.util.read_file = read_file
28 del read_file