mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
Refactor import statement for GitHub integration to simplify code and remove fallback logic.
This commit is contained in:
@@ -4,13 +4,7 @@ import yaml
|
||||
import json
|
||||
from dotenv import load_dotenv
|
||||
from openai import OpenAI
|
||||
try:
|
||||
from autometabuilder.github_integration import GitHubIntegration, get_repo_name_from_env
|
||||
except ImportError:
|
||||
# Fallback for running as a script without proper package installation
|
||||
import sys
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
|
||||
from autometabuilder.github_integration import GitHubIntegration, get_repo_name_from_env
|
||||
from .github_integration import GitHubIntegration, get_repo_name_from_env
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user