please send me a complete patch by email.
On Jan 23, 4:21 am, Markus Gritsch <[email protected]> wrote:
> On Thu, Jan 22, 2009 at 8:07 PM, Wes James <[email protected]> wrote:
>
> > It looks like the file gluon/compileapp.py has this:
>
> > def remove_compiled_application(folder):
> > try:
> > path=os.path.join(folder,'compiled/')
> > for file in listdir(path): os.unlink(os.path.join(path,file))
> > os.rmdir(path)
> > except OSError: pass
>
> > might be changed to:
>
> > def remove_compiled_application(folder):
> > try:
> > path=os.path.join(folder,'compiled/')
> > for file in listdir(path): os.unlink(os.path.join(path,file))
> > os.rmdir(path)
> > path=os.path.join(folder,'controllers/')
> > for file in os.listdir(path):
> > os.unlink(os.path.join(path,file)) if file[-4:] == '.pyc' else ''
> > except OSError: pass
>
> Thanks for finding this. Instead of
> os.unlink(os.path.join(path,file)) if file[-4:] == '.pyc' else ''
> which abuses Pythons ternary operator a bit, you can also write
> if file.endswith('.pyc'): os.unlink(os.path.join(path,file))
>
> It would be nice if this got included into web2py.
>
> Kind regards,
> Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---