diff --git a/main.py b/main.py index 317ce21..584e4c1 100755 --- a/main.py +++ b/main.py @@ -5,8 +5,7 @@ import yaml import argparse import json import os -# Ensure the current working directory is the script’s directory -os.chdir(os.path.dirname(os.path.realpath(__file__))) + # Define configuration file paths. USER_CONFIG_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "config", "config.yaml") BIN_DIR = os.path.expanduser("~/.local/bin") diff --git a/pkgmgr/exec_git_command.py b/pkgmgr/exec_git_command.py index 53ad7bd..d8dcb8d 100644 --- a/pkgmgr/exec_git_command.py +++ b/pkgmgr/exec_git_command.py @@ -1,4 +1,7 @@ import os +from pkgmgr.get_repo_identifier import get_repo_identifier +from pkgmgr.get_repo_dir import get_repo_dir +from pkgmgr.run_command import run_command def exec_git_command(selected_repos, repositories_base_dir, all_repos, git_cmd, extra_args, preview=False): """Execute a given git command with extra arguments for each repository."""