Skip to content

fix: Resolve absolute import conflict for utils module (Closes #5)#6

Open
koerper wants to merge 1 commit intobsaliou:mainfrom
koerper:main
Open

fix: Resolve absolute import conflict for utils module (Closes #5)#6
koerper wants to merge 1 commit intobsaliou:mainfrom
koerper:main

Conversation

@koerper
Copy link

@koerper koerper commented May 16, 2025

This PR addresses issue #5.

It changes the absolute import import utils in chemprice/chemprice.py to a relative import from . import utils. This prevents potential AttributeError exceptions if a user's project also contains a utils.py file in the root directory, ensuring that chemprice always uses its own internal utils module.

Closes #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'utils' has no attribute 'collect_vendors' due to absolute import conflict

1 participant