mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 16:11:24 +00:00
tool: make btstack_event_generator independent from cwd
This commit is contained in:
parent
9dcc7a0dfc
commit
9d585a824f
@ -143,7 +143,7 @@ static inline uint8_t hci_event_{meta_event}_meta_get_subevent_code(const uint8_
|
||||
'''
|
||||
|
||||
# global variables/defines
|
||||
gen_path = '../src/btstack_event.h'
|
||||
# gen_path = '../src/btstack_event.h'
|
||||
|
||||
defines = dict()
|
||||
defines_used = set()
|
||||
@ -264,8 +264,8 @@ def create_events(events):
|
||||
|
||||
fout.write(hfile_header_end)
|
||||
|
||||
# set root
|
||||
parser.set_btstack_root('..')
|
||||
btstack_root = os.path.abspath(os.path.dirname(sys.argv[0]) + '/..')
|
||||
gen_path = btstack_root + '/src/btstack_event.h'
|
||||
|
||||
print(program_info)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user