jaypyles / obsidian-to-bookstack

Download and upload changes between an Obsidian Vault and a Bookstack instance.
MIT License
54 stars 7 forks source link

Required to run from project folder #2

Closed jaypyles closed 8 months ago

jaypyles commented 8 months ago

Issue

Currently the conf.toml is loaded like:

def load_toml():
    """Try to load config"""
    cwd = os.getcwd()
    conf_path = os.path.join(cwd, "conf.toml")

    try:
        with open(conf_path, "r") as t:
            return toml.load(t)
    except:
        print("Couldn't load 'conf.toml'")

Which requires the project to be ran from the project directory.

To Resolve

Load from ~/.config and allow multiple configs for multiple vaults