diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-01-04 16:15:53 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-01-04 16:15:53 +0000 |
commit | 88a840788e82289d417983acf4b49f2c2778296d (patch) | |
tree | 2a73dbdb181d05fc5417dbc75baf6fa0a4c73ccb /RepSys/__init__.py | |
download | mgarepo-88a840788e82289d417983acf4b49f2c2778296d.tar mgarepo-88a840788e82289d417983acf4b49f2c2778296d.tar.gz mgarepo-88a840788e82289d417983acf4b49f2c2778296d.tar.bz2 mgarepo-88a840788e82289d417983acf4b49f2c2778296d.tar.xz mgarepo-88a840788e82289d417983acf4b49f2c2778296d.zip |
fix problem with python threads on 2010.1
Diffstat (limited to 'RepSys/__init__.py')
-rw-r--r-- | RepSys/__init__.py | 19 |
1 files changed, 19 insertions, 0 deletions
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 |