Skip to content

Commit

Permalink
Clean up unnecessary path fiddling in __init__ files
Browse files Browse the repository at this point in the history
  • Loading branch information
qmarcou committed Mar 14, 2024
1 parent f57ce70 commit b54f0a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions keras_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
9 changes: 0 additions & 9 deletions keras_utils/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -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))))

0 comments on commit b54f0a8

Please sign in to comment.