Ticket #1361 (closed defect: fixed)
[PATCH] tg-admin cannot operate on project deployed as an egg
|Reported by:||chrisz||Owned by:||anonymous|
After creating a project on my development machine, I was able to run "tg-admin sql create", but when I deployed this project as an egg on a server, this did not work any more. The error message was that I "need to run this from the project folder", even if I ran the command in the egg directory or with the --egg parameter.
It seems this problem appears because the egg-info of the original project is located in the subdirectory ProjectName.egg-info, but in the deployed egg this directory has the name EGG-INFO (i.e. uppercase and without ProjectName). The function get_project_meta in turbogears.util however, only checks for a directory with lowercase name.
I have added a simple patch that solved the problem for me.