From 61da4a0b1b1eee7549ef3ac312654287c4d6738b Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 25 Mar 2023 13:02:29 -0700 Subject: [PATCH] Move path-related constants from config.py to path.py --- jrnl/config.py | 3 --- jrnl/path.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/jrnl/config.py b/jrnl/config.py index 3923248e..a2f0885c 100644 --- a/jrnl/config.py +++ b/jrnl/config.py @@ -23,9 +23,6 @@ from jrnl.path import get_config_path from jrnl.path import get_default_journal_path # Constants -DEFAULT_CONFIG_NAME = "jrnl.yaml" - -DEFAULT_JOURNAL_NAME = "journal.txt" DEFAULT_JOURNAL_KEY = "default" YAML_SEPARATOR = ": " diff --git a/jrnl/path.py b/jrnl/path.py index 145eea9e..c15fb453 100644 --- a/jrnl/path.py +++ b/jrnl/path.py @@ -6,8 +6,6 @@ from pathlib import Path import xdg.BaseDirectory -from jrnl.config import DEFAULT_CONFIG_NAME -from jrnl.config import DEFAULT_JOURNAL_NAME from jrnl.exception import JrnlException from jrnl.messages import Message from jrnl.messages import MsgStyle @@ -15,6 +13,8 @@ from jrnl.messages import MsgText # Constants XDG_RESOURCE = "jrnl" +DEFAULT_CONFIG_NAME = "jrnl.yaml" +DEFAULT_JOURNAL_NAME = "journal.txt" def home_dir() -> str: