From 88a840788e82289d417983acf4b49f2c2778296d Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 4 Jan 2011 16:15:53 +0000 Subject: fix problem with python threads on 2010.1 --- RepSys/__init__.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 RepSys/__init__.py (limited to 'RepSys/__init__.py') diff --git a/RepSys/__init__.py b/RepSys/__init__.py new file mode 100644 index 0000000..b0df184 --- /dev/null +++ b/RepSys/__init__.py @@ -0,0 +1,19 @@ +#!/usr/bin/python +import re +import os +import tempfile + +import ConfigParser + +config = ConfigParser.Config() +tempfile.tempdir = config.get("global", "tempdir", None) or None # when "" +del ConfigParser + +def disable_mirror(*a, **kw): + config.set("global", "use-mirror", "no") + +class Error(Exception): pass + +class SilentError(Error): pass + +# vim:et:ts=4:sw=4 -- cgit v1.2.1