the erro is:
>>>> dir = os.path.basename(os.getcwd())
>>>> appname = turbogears.util.get_project_name()
>>>> dir.decode("utf-8")
u'webcap'
>>>> appname.decode("utf-8")
u'webcap\r'
that is not happening on my end.
In [13]: dir = os.path.basename(os.getcwd())
In [14]: appname = turbogears.util.get_project_name()
In [15]: dir.decode("utf-8")
Out[15]: u'Contacts'
In [16]: appname.decode('utf-8')
Out[16]: u'Contacts'
conclusion: the function get_project_name() return \r in the end of
string
dir != appname because has an \r in the end of string
yes it is but it's what's on your code.
78 def get_project_name():
79 for i in os.listdir("./"):
80 if i.endswith("egg-info"):
81 return list(open("%s/PKG-INFO" %i))[1][6:-1]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

