diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-05-14 09:18:49 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-05-14 09:18:49 +0200 |
commit | f057c3af79962cfa953fe3f4b7464cec4a3ba74e (patch) | |
tree | c983d1f7251c0b40ebb67608aa03d23a274809e6 /bin/generate-dummy-class.py | |
parent | 5a6ecfff51e82981e0a4a1429a9ce977600dae82 (diff) |
generate-{dfa-benchmark,dummy-class}: use relative paths
Diffstat (limited to 'bin/generate-dummy-class.py')
-rwxr-xr-x | bin/generate-dummy-class.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/generate-dummy-class.py b/bin/generate-dummy-class.py index 15cc147..d86339b 100755 --- a/bin/generate-dummy-class.py +++ b/bin/generate-dummy-class.py @@ -5,10 +5,10 @@ from dfatool.codegen import MultipassDriver from dfatool.automata import PTA import yaml -with open('/home/derf/var/projects/multipass/model/driver/nrf24l01.dfa', 'r') as f: +with open('../multipass/model/driver/nrf24l01.dfa', 'r') as f: driver_definition = yaml.safe_load(f) pta = PTA.from_yaml(driver_definition) -repo = Repo('/home/derf/var/projects/multipass/build/repo.acp') +repo = Repo('../multipass/build/repo.acp') enum = dict() @@ -17,7 +17,7 @@ if 'dummygen' in driver_definition and 'enum' in driver_definition['dummygen']: drv = MultipassDriver('Nrf24l01', pta, repo.class_by_name['Nrf24l01'], enum=enum) -with open('/home/derf/var/projects/multipass/src/driver/dummy.cc', 'w') as f: +with open('../multipass/src/driver/dummy.cc', 'w') as f: f.write(drv.impl) -with open('/home/derf/var/projects/multipass/include/driver/dummy.h', 'w') as f: +with open('../multipass/include/driver/dummy.h', 'w') as f: f.write(drv.header) |