From 8ef001e89da28bdaa6529f5609fb9d4edb5c8c25 Mon Sep 17 00:00:00 2001 From: virgilsisoe <28490646+sisoe24@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:54:33 -0400 Subject: [PATCH] . --- nukeserversocket/__init__.py | 4 ++++ tests/__init__.py | 10 ---------- tests/conftest.py | 6 ++++++ 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 tests/__init__.py diff --git a/nukeserversocket/__init__.py b/nukeserversocket/__init__.py index e5d3319e..bbaac7d5 100644 --- a/nukeserversocket/__init__.py +++ b/nukeserversocket/__init__.py @@ -1,6 +1,10 @@ """Module will initialize the logging system and import Nuke.""" from __future__ import annotations +from . import * +import os from .main import NukeServerSocket from .version import __version__ from .controllers.nuke import install_nuke + +print('main__init__.', os.listdir()) diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index 0a217c11..00000000 --- a/tests/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -import os -import sys - -import nukeserversocket - -p = os.path.dirname(os.path.dirname(__file__)) - -sys.path.append(os.path.join(p, 'nukeserversocket')) - -print('sys path', sys.path) diff --git a/tests/conftest.py b/tests/conftest.py index 3be145fe..b8e4b7da 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,7 @@ from __future__ import annotations import os +import sys import logging import pathlib @@ -8,6 +9,11 @@ from nukeserversocket import settings +p = os.path.dirname(os.path.dirname(__file__)) +sys.path.append(os.path.join(p, 'nukeserversocket')) +print('sys path', sys.path) + + SETTINGS_FILE = pathlib.Path(__file__).parent / 'tmp' / 'nss.json' SETTINGS_FILE.parent.mkdir(parents=True, exist_ok=True)