[Zope-dev] install complains about 'invalid' Python files
THerp@apriori.de
THerp@apriori.de
Thu, 13 Mar 2003 15:45:50 +0100
Lennart Regebro wrote:
> THerp@apriori.de wrote:
> > When I run the Zope install script on a freshly installed Zope, and my
> > Product is already there, it complains that the *.py scripts (aimed for
> > import) would be invalid, because there are return-, but no def
statements.
> > Thus, installation fails; I must first remove my product.
> This may be completely daft, but my first reaction is that files with
> Zope python scripts maybe should have separate file extentions, since
> they aren't valid python files. .pys, maybe?
Well, I wanted to avoid this. But since this seams to be the only
possibility, I'll use .zpy instead (Zope PYthon script) and tell vim to
highlight them as Python.
Thanks,
Tobias