Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions datkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,6 @@
)


#
# Paths
#

# Datkit root
import os, inspect # noqa
try:
frame = inspect.currentframe()
DIR_DATKIT = os.path.abspath(os.path.dirname(inspect.getfile(frame)))
finally:
# Always manually delete frame
# https://docs.python.org/3/library/inspect.html
del frame
del os, inspect


#
# Imports
#
Expand Down
6 changes: 1 addition & 5 deletions datkit/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
# This file is part of Datkit.
# For copyright, sharing, and licensing, see https://github.com/myokit/datkit/
#
import os
import unittest

# The test directory
DIR_TEST = os.path.abspath(os.path.dirname(__file__))


class TestCase(unittest.TestCase):
"""
Expand Down Expand Up @@ -55,4 +51,4 @@ def assertUnchanged(self, func, *args):
self.assertTrue(self.array_args_unchanged(func, *args))


del os, unittest
del unittest
Loading