Nouvelle brique: Appels d'offres
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / scripts / harvest.in
CommitLineData
0cc5f772
CR
1#!/usr/bin/env python
2# -*- encoding: utf-8 -*-
3
4import sys, os, glob
5
6sys.path[0:0] = [
7 "%(directory)s",
8 "%(directory)s/parts/django",
9 "%(directory)s/auf_savoirs_en_partage",
10 "%(directory)s/auf_savoirs_en_partage/savoirs/lib",
11 ]
12for d in glob.glob("%(directory)s/eggs/*"):
13 sys.path[0:0] = [d,]
14
8b95ddc9 15os.environ['DJANGO_SETTINGS_MODULE'] = 'production'
0cc5f772
CR
16
17
18from auf_savoirs_en_partage.savoirs.lib.harvest import import_all
19
20import_all()