如果我尝试
grok.templatedir("../browser/templates")
我明白了
GrokImportError: The 'templatedir' directive can not contain path separator.
将 Five.grok 模板目录设置为绝对路径的正确方法是什么?
In [1]: from os.path import dirname, join
In [2]: import zopeskel.basic_zope
In [3]: join(dirname(zopeskel.basic_zope.__file__))
Out[3]: '/usr/local/lib/python2.6/dist-packages/ZopeSkel-2.19-py2.6.egg/zopeskel'
but - I dunno if this is the correct way.
best, marco