joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.45k stars 423 forks source link

workaround for pre-existing ~/.grip (used by another gtk tool) #252

Open init-js opened 6 years ago

init-js commented 6 years ago

One of the locations to load grip settings is ~/.grip/settings.py

app.py does:

self.config.from_pyfile(os.path.join(instance_path, 'settings.py'), silent=True)

Which normally would silently ignore the call if ~/.grip/settings.py doesn't exist, but unfortunately in flask 0.12.2, ENOTDIR is not silently absorbed.

I already had a ~/.grip (regular file, not directory) lying about from another GTK tool that stores its configs there. Which triggers the ENOTDIR, and consequently I couldn't use your tool.

I've opened an issue with the flask repo, not sure where it will end up. https://github.com/pallets/flask/issues/2545

solbu commented 6 years ago

I am the upstream maintainer of the GTK Grip tool you mention, that does indeed store it's config in the file ~/.grip.

My tool is the old cd ripper Grip, which I resurrected and picked up as new maintainer in december 2016.

a17r commented 6 years ago

Not just that; the matching binary name is creating a file collision on install.