Skip to content

Commit 030f52d

Browse files
committed
fix j1939 tests
1 parent cdfa26a commit 030f52d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/canmatrix/j1939_decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from builtins import *
3-
3+
import os
44
import attr
55

66
import canmatrix.formats
@@ -16,7 +16,7 @@
1616
@attr.s
1717
class j1939_decoder(object):
1818
#string = read_binary(__name__.rpartition('.')[0], "j1939.dbc")
19-
with open( "j1939.dbc", "rb") as fd:
19+
with open(os.path.join(os.path.dirname(__file__), "j1939.dbc"), "rb") as fd:
2020
string = fd.read()
2121
j1939_db = canmatrix.formats.loads_flat(
2222
string, import_type="dbc", dbcImportEncoding="utf8"

0 commit comments

Comments
 (0)