ersilia-os / ersilia

The Ersilia Model Hub, a repository of AI/ML models for infectious and neglected disease research.
https://ersilia.io
GNU General Public License v3.0
203 stars 131 forks source link

🐛 Bug: Ersilia fails to initialize if `.bashrc` is not present in home dir #452

Closed leoank closed 1 year ago

leoank commented 1 year ago

Describe the bug.

The issue is in the call to bashrc_cli_snippet(overwrite=False) function on line 54 of the root __init__.py file. This function will throw error if no .bashrc file is found in the home dir.

Describe the steps to reproduce the behavior

Use the library on windows or a linux system with no .bashrc in home dir

Expected behavior.

Library should have initialized properly

Screenshots.

No response

Operating environment

Windows, Arch

Additional context

No response

miquelduranfrigola commented 1 year ago

Hello @leoank - I have updated this and now Ersilia doesn't crash if no bashrc or bash_profile is available.