mirror of
https://github.com/harvard-lil/data-vault.git
synced 2025-03-15 07:31:21 +00:00
move config path to match package name
This commit is contained in:
parent
b245fd44eb
commit
d1d4b359a2
2 changed files with 1 additions and 3 deletions
|
@ -20,8 +20,6 @@ from scripts.helpers.bag import fetch_and_upload
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
stats_counter = {}
|
stats_counter = {}
|
||||||
|
|
||||||
CONFIG_PATH = (os.environ.get("XDG_CONFIG_HOME") or (Path.home() / ".config")) / "data-mirror" / "config.json"
|
|
||||||
|
|
||||||
def check_repo_exists(org_name, repo_name, token, output_path=None):
|
def check_repo_exists(org_name, repo_name, token, output_path=None):
|
||||||
"""Check if a repository still exists on GitHub."""
|
"""Check if a repository still exists on GitHub."""
|
||||||
exists = True
|
exists = True
|
||||||
|
|
|
@ -2,7 +2,7 @@ import json
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
CONFIG_PATH = (os.environ.get("XDG_CONFIG_HOME") or (Path.home() / ".config")) / "data-mirror" / "config.json"
|
CONFIG_PATH = (os.environ.get("XDG_CONFIG_HOME") or (Path.home() / ".config")) / "data-vault" / "config.json"
|
||||||
|
|
||||||
def load_config():
|
def load_config():
|
||||||
"""Load configuration from config file."""
|
"""Load configuration from config file."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue