this is my current tree file: ├── check.py ├── const.py ├── modules │ ├── prep.py │ └──…
- User
this is my current tree file:
├── check.py ├── const.py ├── modules │ ├── prep.py │ └── pycache │ └── prep.cpython-311.pyc ├── pisco.py ├── postoga │ ├── configure.sh │ ├── constants.py │ ├── logger.py │ ├── modules │ │ ├── filter_query_annotation.py │ │ ├── make_query_table.py │ │ ├── pycache │ │ │ ├── filter_query_annotation.cpython-311.pyc │ │ │ ├── make_query_table.cpython-311.pyc │ │ │ ├── utils.cpython-311.pyc │ │ │ └── write_isoforms.cpython-311.pyc │ │ ├── requirements.py │ │ ├── utils.py │ │ └── write_isoforms.py │ ├── postoga.py │ ├── pycache │ │ ├── constants.cpython-311.pyc │ │ └── logger.cpython-311.pyc │ └── README.md ├── pycache │ └── const.cpython-311.pyc └── run.py
and I am running this:
def main(): create('work/species') postoga('query')
that will create a work dir with a 'species' subdir.
What I am trying to do is this:
class Const: ROOT = resources.files(postoga) WORK = resources.files(work) POSTOGA = ROOT.joinpath('postoga.py') POSTOGA_OUT = WORK.joinpath('species')
Manage all the output files in 'work' with constants:
WORK = resources.files(work)
that should point to all files inside work; however, I am getting this errors:
Traceback (most recent call last): File "/home/alejandro/Documents/projects/hiller/champagne/pisco/./check.py", line 10, in from modules.prep import postoga File "/home/alejandro/Documents/projects/hiller/champagne/pisco/modules/prep.py", line 9, in from const import Const File "/home/alejandro/Documents/projects/hiller/champagne/pisco/const.py", line 17, in class Const: File "/home/alejandro/Documents/projects/hiller/champagne/pisco/const.py", line 19, in Const WORK = resources.files(work) ^^^^ NameError: name 'work' is not defined
- Assistant