I usually simlink projects into my Packages folder when I'm working on them,
and wasn't able to use the "reload" command because the path was expanded.
I therefore added a fallback to the method that guess the package name from the filename.
The behavior should be the same as before for users for who the plugin was working.
If you have a better idea for the "extract_from_file_name" function name, or if you want me to inline it, please tell me.
I usually simlink projects into my Packages folder when I'm working on them, and wasn't able to use the "reload" command because the path was expanded.
I therefore added a fallback to the method that guess the package name from the filename.
The behavior should be the same as before for users for who the plugin was working.
If you have a better idea for the "extract_from_file_name" function name, or if you want me to inline it, please tell me.