autogen: refactor common parts into separate modules

This commit is contained in:
Vladislav Yarmak
2019-11-18 18:16:15 +02:00
parent 361eef29c8
commit 274ce241bc
3 changed files with 77 additions and 64 deletions

View File

@@ -0,0 +1,24 @@
from enum import IntEnum
import os.path
class Product(IntEnum):
GeForce = 10
Quadro = 20
class WinSeries(IntEnum):
win10 = 10
win7 = 20
ws2012 = 30
ws2016 = 40
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
TEMPLATE_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"templates")
DATAFILE_PATH = os.path.join(BASE_PATH,
"..", "..", "drivers.json")
LINUX_README_PATH = os.path.join(BASE_PATH,
"..", "..", "README.md")
WINDOWS_README_PATH = os.path.join(BASE_PATH,
"..", "..", "win", "README.md")
ENCODING='utf-8'