arshadkazmi42/currency-symbols

Can't easily import this module

snoopyjc opened this issue · 7 comments

This module has a '-' in it's name, so the only way to import it is to:

import importlib
currency_symbols = importlib.import_module('currency-symbols')

Is it. I never thought this is a problem in python import.
We should get this fixed. Would you like to take a try on this?

I'm also having issues importing it. I just replaced the dash in the directory name of the module by an underscore and changed imports to relative to fix it. I'm making a pull request to fix it (hopefully), it should then be updated on pip

Also having troubles with importing.
Would be great to have that fixed.

@ilya1200 my PR should solve the issue, you can try it out and see if it does the trick

This is deployed v2.0.0 @loricvdt @ilya1200 can you try this now.

Works great thanks!
(tested on Windows Python 3.9.0 and Ubuntu Python 3.6.9)

Awesome.
Closing this issue.