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