Skip to content

Commit

Permalink
Updates to help debug test issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrimko committed Oct 19, 2023
1 parent db38623 commit 1a46b8a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@
import sys
import unittest

appdir = op.normpath(op.join(op.abspath(op.dirname(__file__)), r"../app"))
sys.path.insert(0, appdir)
libdir = op.normpath(op.join(op.abspath(op.dirname(__file__)), r"../lib"))
sys.path.insert(0, libdir)
##==============================================================#
## SECTION: Function Definitions #
##==============================================================#

def _add_relative_dir_to_syspath(reldir):
absdir = op.normpath(op.join(op.abspath(op.dirname(__file__)), reldir))
sys.path.insert(0, absdir)

##==============================================================#
## SECTION: Special Setup #
##==============================================================#

_add_relative_dir_to_syspath("../app")
_add_relative_dir_to_syspath("../lib")

print(sys.path)

0 comments on commit 1a46b8a

Please sign in to comment.