Skip to content

Commit bded64f

Browse files
committed
changing file paths to work on windows and linux
1 parent 991aa7b commit bded64f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_b64unpack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
from .. msticpy.sectools import base64unpack as b64
1313

1414

15-
_test_data_folders = [d for d, _, _ in os.walk(os.getcwd()) if d.endswith('\\tests\\testdata')]
15+
_test_data_folders = [d for d, _, _ in os.walk(os.getcwd()) if d.endswith('/tests/testdata')]
1616
if len(_test_data_folders) == 1:
1717
_TEST_DATA = _test_data_folders[0]
1818
else:
19-
_TEST_DATA = '.\\tests\\testdata'
19+
_TEST_DATA = './tests/testdata'
2020

2121

2222
class TestB64Unpack(unittest.TestCase):

tests/test_vtlookup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
import pandas as pd
1212
from .. msticpy.sectools.vtlookup import VTLookup
1313

14-
_test_data_folders = [d for d, _, _ in os.walk(os.getcwd()) if d.endswith('\\tests\\testdata')]
14+
_test_data_folders = [d for d, _, _ in os.walk(os.getcwd()) if d.endswith('/tests/testdata')]
1515
if len(_test_data_folders) == 1:
1616
_TEST_DATA = _test_data_folders[0]
1717
else:
18-
_TEST_DATA = '.\\tests\\testdata'
18+
_TEST_DATA = './tests/testdata'
1919

2020

2121
class TestVTLookup(unittest.TestCase):

0 commit comments

Comments
 (0)