Skip to content

Commit

Permalink
Fix's path
Browse files Browse the repository at this point in the history
  • Loading branch information
morington committed Jun 27, 2024
1 parent 7f43acb commit 357aace
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions confhub/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import sys
from pathlib import Path

from confhub.console import main
from confhub.__meta__ import __version__
from confhub.setup_logger import SetupLogger, LoggerReg
Expand All @@ -13,7 +10,4 @@
)

if __name__ == '__main__':
project_path = Path.cwd()
sys.path.append(str(project_path.resolve()))

main(prog='confhub', version=__version__)
2 changes: 1 addition & 1 deletion confhub/__meta__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0.2a"
__version__ = "0.1.0.3a"
4 changes: 4 additions & 0 deletions confhub/utils/__models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import importlib
import sys
from pathlib import Path
from typing import List, Dict, Any

Expand All @@ -10,6 +11,9 @@


def get_models_from_path(data: Dict[str, Any]) -> List[BlockCore]:
project_path = Path.cwd()
sys.path.append(str(project_path.resolve()))

module_path = Path(data.get('models_path'))
module_name = '.'.join(module_path.parts[-2:]).replace('.py', '')

Expand Down

0 comments on commit 357aace

Please sign in to comment.