solved file path bugs

This commit is contained in:
Kevin Veen-Birkenbach
2025-03-06 12:40:50 +01:00
parent 6e2be4066a
commit bcd9b41173
2 changed files with 7 additions and 4 deletions

8
main.py Normal file → Executable file
View File

@@ -1,10 +1,14 @@
#!/usr/bin/env python3
import os
import yaml
import argparse
import json
import os
# Ensure the current working directory is the scripts directory
os.chdir(os.path.dirname(os.path.realpath(__file__)))
# Define configuration file paths.
USER_CONFIG_PATH = os.path.join("config", "config.yaml")
USER_CONFIG_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "config", "config.yaml")
BIN_DIR = os.path.expanduser("~/.local/bin")
from pkgmgr.clone_repos import clone_repos