1 from enum
import Enum
, unique
7 file_dir
= os
.path
.dirname(os
.path
.realpath(__file__
))
8 file_path
= os
.path
.join(file_dir
, name
)
9 if not os
.path
.isfile(file_path
):
10 url
= 'https://libre-riscv.org/openpower/isatables/' + name
11 r
= requests
.get(url
, allow_redirects
=True)
12 with
open(file_path
, 'w') as outfile
:
13 outfile
.write(r
.content
.decode("utf-8"))
14 with
open(file_path
, 'r') as csvfile
:
15 reader
= csv
.DictReader(csvfile
)
25 class InternalOp(Enum
):