From 4b79b253d268652a1ae7239b564aaff9c2871589 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 29 Apr 2020 09:54:55 +0200 Subject: Use relative module paths. PYTHONPATH=lib bin/... is no longer needed --- test/__init__.py | 0 test/dfatool | 1 + test/test_codegen.py | 4 ++-- test/test_pta.py | 2 +- test/test_ptamodel.py | 2 +- test/test_timingharness.py | 4 ++-- 6 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 test/__init__.py create mode 120000 test/dfatool (limited to 'test') diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/dfatool b/test/dfatool new file mode 120000 index 0000000..dc598c5 --- /dev/null +++ b/test/dfatool @@ -0,0 +1 @@ +../lib \ No newline at end of file diff --git a/test/test_codegen.py b/test/test_codegen.py index fb0d387..981117b 100755 --- a/test/test_codegen.py +++ b/test/test_codegen.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 -from automata import PTA -from codegen import get_simulated_accountingmethod +from dfatool.automata import PTA +from dfatool.codegen import get_simulated_accountingmethod import unittest example_json_1 = { diff --git a/test/test_pta.py b/test/test_pta.py index cf8bce4..9f0778d 100755 --- a/test/test_pta.py +++ b/test/test_pta.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from automata import PTA +from dfatool.automata import PTA import unittest import yaml diff --git a/test/test_ptamodel.py b/test/test_ptamodel.py index 6bd2f6a..7d501e6 100755 --- a/test/test_ptamodel.py +++ b/test/test_ptamodel.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from dfatool import PTAModel, RawData, pta_trace_to_aggregate +from dfatool.dfatool import PTAModel, RawData, pta_trace_to_aggregate import os import unittest import pytest diff --git a/test/test_timingharness.py b/test/test_timingharness.py index 8d5ec20..c8a422c 100755 --- a/test/test_timingharness.py +++ b/test/test_timingharness.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 -from dfatool import AnalyticModel, TimingData, pta_trace_to_aggregate -from parameters import prune_dependent_parameters +from dfatool.dfatool import AnalyticModel, TimingData, pta_trace_to_aggregate +from dfatool.parameters import prune_dependent_parameters import unittest -- cgit v1.2.3