tools: remove hardcoded references to paths

This commit is contained in:
2022-05-07 11:33:45 -07:00
parent 2bfced6a2b
commit 1a88bebf82
3 changed files with 9 additions and 3 deletions

View File

@@ -1,12 +1,14 @@
import argparse
import enum
import lark
import os
import struct
import sys
import obj_pb2
GRAMMAR_FILE = '/home/paulmathieu/vhdl/tools/as.ebnf'
_HERE = os.path.dirname(__file__)
GRAMMAR_FILE = os.path.join(_HERE, 'as.ebnf')
opcodes = {
'nop' : lambda: '0000',