tools: remove hardcoded references to paths
This commit is contained in:
@@ -6,6 +6,7 @@ from dataclasses import dataclass
|
||||
import importlib
|
||||
import inspect
|
||||
import io
|
||||
import os
|
||||
import re
|
||||
import struct
|
||||
import subprocess
|
||||
@@ -15,7 +16,8 @@ import lark
|
||||
|
||||
asmod = importlib.import_module("as")
|
||||
|
||||
GRAMMAR_FILE = '/home/paulmathieu/vhdl/tools/cc.ebnf'
|
||||
_HERE = os.path.dirname(__file__)
|
||||
GRAMMAR_FILE = os.path.join(_HERE, 'cc.ebnf')
|
||||
CPP = ('cpp', '-P')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user