From a6f5ecaca65dea027456b713c3681da36f2c1157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 9 Jun 2005 09:19:38 +0000 Subject: [PATCH] =?UTF-8?q?pisiconfig=20mod=C3=BClu=20genel=20yap=C4=B1lan?= =?UTF-8?q?d=C4=B1rma=20bilgilerimizi=20alaca=C4=9F=C4=B1m=C4=B1z=20mod?= =?UTF-8?q?=C3=BCl.=20=C5=9Eu=20anda=20bunlar=C4=B1n=20hepsi=20statik=20ya?= =?UTF-8?q?p=C4=B1land=C4=B1rma=20se=C3=A7enekleri.=20Daha=20sonra=20farkl?= =?UTF-8?q?=C4=B1=20olabilir...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fetcher.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fetcher.py b/src/fetcher.py index ade36ef7..3a9d345a 100755 --- a/src/fetcher.py +++ b/src/fetcher.py @@ -1,12 +1,16 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +# python standard library modules import urlparse import urllib import os from sys import argv from sys import exit +# pisi modules +import pisiconfig + class FetchError (Exception): pass @@ -14,7 +18,7 @@ class Fetcher: """Yet another Pisi tool for fetching files from various sources..""" def __init__(self, uri): self.uri = uri - self.filedest = "/var/cache/pisi/archives" + self.filedest = pisiconfig.archives_dir self.scheme = "file" self.netloc = "" self.filepath = ""