From b54f0a88f0498f8fff3fe0ad30e2691f87e4568a Mon Sep 17 00:00:00 2001 From: "q.marcou" <18257721+qmarcou@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:34:53 +0100 Subject: [PATCH] Clean up unnecessary path fiddling in __init__ files --- keras_utils/__init__.py | 8 -------- keras_utils/tests/__init__.py | 9 --------- 2 files changed, 17 deletions(-) diff --git a/keras_utils/__init__.py b/keras_utils/__init__.py index 761f0a1..faff47f 100644 --- a/keras_utils/__init__.py +++ b/keras_utils/__init__.py @@ -4,11 +4,3 @@ from . import metrics from . import models from . import schedules - -import sys -from pathlib import Path -import os - -libdir = os.path.dirname(__file__) -srcdir = libdir+'/..' -sys.path.insert(0, str(Path(os.path.abspath(srcdir)))) \ No newline at end of file diff --git a/keras_utils/tests/__init__.py b/keras_utils/tests/__init__.py index d365c98..e69de29 100644 --- a/keras_utils/tests/__init__.py +++ b/keras_utils/tests/__init__.py @@ -1,9 +0,0 @@ -import sys -from pathlib import Path -import os -testdir = os.path.dirname(__file__) -ku_srcdir = testdir+'/..' -sys.path.insert(0, str(Path(os.path.abspath(ku_srcdir)))) -srcdir = ku_srcdir+'/..' -print(srcdir) -sys.path.insert(0, str(Path(os.path.abspath(srcdir)))) \ No newline at end of file