Document the usage with `python -m`
See original GitHub issueMy project structure:
gfa/ ├── config │ └── settings.yaml ├── init.py ├── main.py ├── resources │ ├── exon_body.bed │ ├── exon_end.bed │ ├── exon_start.bed ├── src │ ├── annotators │ │ ├── get_annots.py │ │ └── init.py │ ├── gfa.py │ ├── preprocess └── tests ├── fixtures │ └── test_bkpt.tsv ├── init.py └── test_get_annots.py
I have a settings.yaml in the config folder with the content below
---
exon_region_dict
start : '../resources/exon_start.bed'
stop : '../resources/exon_stop.bed'
body : '../resources/exon_body.bed'
I call settings.EXON_REGION_DICT in get_annots.py but I get this error line 113, in getattr return getattr(self._wrapped, name) AttributeError: ‘Settings’ object has no attribute ‘EXON_REGION_DICT’
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
1. Command line and environment — Python 3.11.1 ...
The most common use case is, of course, a simple invocation of a script: ... When called with -m module-name , the given...
Read more >Documenting Python Code: A Complete Guide
A complete guide to documenting Python code. Whether you're documenting a small script or a large project, whether you're a beginner or seasoned...
Read more >python - What is the purpose of the -m switch? - Stack Overflow
In short it can be used to: (1) execute python code from the command line via modulename rather than filename (2) add a...
Read more >pip install - pip documentation v22.3.1
Installing collected packages baz, bar, foo, quux $ python -m pip install bar . ... The Python interpreter version to use for wheel...
Read more >django-admin and manage.py
The command-line examples throughout this document use django-admin to be consistent, but any example can use manage.py or python -m django just as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Resolved after adding the setting.yaml path to .env file in the root dir
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.