Closed danibene closed 1 month ago
Update: Pulled new code and was getting the error "ModuleNotFoundError: No module named 'misosoupy'".
I was also having difficulty importing resources from importlib (ImportError: cannot import name 'resources'
)...
In deep diving on Google to resolve these, I think I found my original error: os.path.abspath("__file__")
should have been os.path.abspath(__file__)
in the get_home_dir function. Fixing that fixed the directory issue for me! I modified the get_path_to_assets function to still point to the assets folder you created (I think that organization is a good idea regardless).
I'll commit the change, so I can keep working on config/documentation. Let me know if it works for you, or if you feel strongly about using pathlib instead of os.
When I tried running
run_misosoupy.py
, I got an error"Can't parse sound list!"
due to not being able to find the path of the specified sound list. Therefore, this PR aims to load the sound lists regardless of what the current directory is, by using a relative path from anassets
module.