Development: How to get around self importing module #65
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#65
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
when I try to launch borgmatic from a git checkout:
this is probably a result of
commands/borgmatic.py
import fromborgmatic
, which is interpreted as importing from the same file.How do you get around this while developing?
Thanks!
Development: How do get around self importing moduleto Development: How to get around self importing moduleI develop on this by installing borgmatic as "editable". Meaning, with the
pip install --editable
flag. That means I can hack on the source and see changes reflected immediately, while everything is imported exactly as it would be in the real world. Plus, all of the standard borgmatic console commands are runnable this way as well, assuming they're installed somewhere that's on yourPATH
(or you're using a virtualenv).If that process works for you, then I can at least make sure that's mentioned in the documentation.
I added some info about using "editable" mode to the borgmatic README during development. So calling this done for now. But please let me know if you have any other issues with this.