From 067411112950c0cfff767f321fbe97f4d8a64d20 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 20 Jun 2017 14:29:47 -0500 Subject: [PATCH] fixes #1579, thanks Nico --- gluon/tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gluon/tools.py b/gluon/tools.py index b5e896ee..ce6db5dc 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -5786,6 +5786,9 @@ class Expose(object): @staticmethod def isprivate(f): + # remove '/private' prefix to deal with symbolic links on OSX + if f.startswith('/private/'): + f = f[8:] return 'private' in f or f.startswith('.') or f.endswith('~') @staticmethod