diff --git a/utils/robots_perso.py b/utils/robots_perso.py index 32a5e4f8..1f8212d7 100755 --- a/utils/robots_perso.py +++ b/utils/robots_perso.py @@ -11,7 +11,7 @@ robots_file = '/usr/scripts/var/perso/robots.txt' robots = collections.defaultdict(lambda:collections.defaultdict(list)) def add_robots(user, robots): - robots_path = os.expanduser('~%s/www/robots.txt' % user) + robots_path = os.path.expanduser('~%s/www/robots.txt' % user) if os.path.exists(robots_path): rp = robotparser.RobotFileParser() rp.parse(open(robots_path))