Circular Imports in events/__init__.py and events/manager.py

Please post any questions about developing your plugin here. Please use the search function before posting!
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Circular Imports in events/__init__.py and events/manager.py

Postby Omega_K2 » Thu Aug 08, 2013 5:33 am

manager.py imports EventsLogger from __init__.py
and
__init__.py imports something from manager.py


As such results in an error, possibly move the logger to an extra file, like _logger.py (which I did as a work around :P)

Also might not throw up errors if you have cached python files.
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm

If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
User avatar
satoon101
Project Leader
Posts: 2698
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Thu Aug 08, 2013 12:56 pm

Dang, I fixed that previously and must have accidentally reverted those changes. The same probably holds true for the tick package. I will fix these when I get home.

Sorry for the inconvenience,
Satoon
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Wed Aug 14, 2013 6:31 am

Thanks for fixing those. There is one more in events/listener.py
Libraries: k2tools

Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)

Plugins (game-specific): None atm



If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 20 guests