From 8248887f9c422e4eec8b6237cff435496bc4f6d9 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 1 Sep 2014 00:11:03 +0200 Subject: [PATCH] robots_perso: oubli d'un os.*path*.expanduser --- utils/robots_perso.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))