python - What is the canonical way to import all modules in a .eggs directory? -
i building package using setuptools, , unit testing need import several dependencies (including django). have built minimal project testing when run python setup.py test works expected: harness installs missing dependencies egg files in .eggs , runs python manage.py test successfully.
sometimes want run single test. in case, type python manage.py test module.path.testcasename.methodname test specific item need. requires django module available. right have django installed in virtualenv , works.
what want have packages installed in .eggs loaded when run python manage.py <command>. suspect means running within manage.py adds each of eggs sys.path. since setuptools knows how this, want leverage method or code, can't find it.
so short question is: how import <x>.egg files in .eggs directory in pythonic way part of starting manage.py?
Comments
Post a Comment