move path manipulation into single module

Change-Id: If88aafd03b757715b82cd733b3155e656c252b06
Reviewed-on: https://forge.frm2.tum.de/review/19529
Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
Georg Brandl 2018-12-04 10:48:57 +01:00 committed by Enrico Faulhaber
parent 50c3e5e47a
commit 0deb462c6a
7 changed files with 4 additions and 28 deletions

4
test/__init__.py Normal file
View File

@ -0,0 +1,4 @@
import sys
from os import path
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))

View File

@ -22,14 +22,10 @@
"""test base client.""" """test base client."""
from __future__ import division, print_function from __future__ import division, print_function
import sys
from collections import OrderedDict from collections import OrderedDict
from os import path
import pytest import pytest
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
from secop.client.baseclient import Client from secop.client.baseclient import Client

View File

@ -23,14 +23,9 @@
from __future__ import division, print_function from __future__ import division, print_function
import sys
from os import path
# no fixtures needed # no fixtures needed
import pytest import pytest
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
from secop.datatypes import (ArrayOf, BLOBType, BoolType, DataType, EnumType, from secop.datatypes import (ArrayOf, BLOBType, BoolType, DataType, EnumType,
FloatRange, IntRange, ProgrammingError, FloatRange, IntRange, ProgrammingError,
StringType, StructOf, TupleOf, get_datatype) StringType, StructOf, TupleOf, get_datatype)

View File

@ -23,14 +23,9 @@
from __future__ import division, print_function from __future__ import division, print_function
import sys
from os import path
# no fixtures needed # no fixtures needed
import pytest import pytest
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
from secop.lib.enum import Enum, EnumMember from secop.lib.enum import Enum, EnumMember

View File

@ -22,14 +22,9 @@
"""test data types.""" """test data types."""
from __future__ import division, print_function from __future__ import division, print_function
import sys
from os import path
# no fixtures needed # no fixtures needed
import pytest import pytest
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
from secop.datatypes import BoolType, EnumType from secop.datatypes import BoolType, EnumType
from secop.metaclass import ModuleMeta from secop.metaclass import ModuleMeta
from secop.modules import Communicator, Drivable, Module, Readable, Writable from secop.modules import Communicator, Drivable, Module, Readable, Writable

View File

@ -23,14 +23,9 @@
from __future__ import division, print_function from __future__ import division, print_function
import sys
from os import path
# no fixtures needed # no fixtures needed
import pytest import pytest
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
from secop.datatypes import BoolType from secop.datatypes import BoolType
from secop.params import Command, Override, Parameter from secop.params import Command, Override, Parameter

View File

@ -23,14 +23,10 @@
from __future__ import division, print_function from __future__ import division, print_function
import sys
from collections import OrderedDict from collections import OrderedDict
from os import path
import pytest import pytest
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
from secop.parse import Parser from secop.parse import Parser