From fdcee57ada724242faa407bb6ba752135ec14316 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 14 Feb 2014 20:53:16 +0100 Subject: [PATCH 1/1] Dehardcoding du path vers dtc.py --- lastdtc.py | 5 ++++- serverconfig.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lastdtc.py b/lastdtc.py index 3eab303..0ae7d30 100644 --- a/lastdtc.py +++ b/lastdtc.py @@ -1,9 +1,12 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- +""" Module bidon pour rediriger vers la bonne fonction du module DTC """ + import sys -sys.path.insert(0, "/home/vincent/scripts/dtc/") +import serverconfig +sys.path.insert(0, serverconfig.dtc_path) import dtc functions = {"dtc" : dtc.last_inserted} diff --git a/serverconfig.py b/serverconfig.py index 518ad86..d066764 100644 --- a/serverconfig.py +++ b/serverconfig.py @@ -12,3 +12,6 @@ DEBUG = False #: La liste des chaînes Youtube à surveiller youtube_channels_file = "youtube_channels" + +#: Path du directory du module de gestion des quotes DTC +dtc_path = "/home/vincent/scripts/dtc/" -- 2.39.2