[beast/win32: 36/44] Use a portable way of figuring out temp dir (which is not always /tmp).
- From: Stefan Westerfeld <stw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [beast/win32: 36/44] Use a portable way of figuring out temp dir (which is not always /tmp).
- Date: Fri, 29 Jan 2010 16:24:26 +0000 (UTC)
commit abc86a4393dcc5d7fc4e5df229f9bf344c9042c9
Author: Stefan Westerfeld <stefan space twc de>
Date: Sun Sep 13 16:59:15 2009 +0200
Use a portable way of figuring out temp dir (which is not always /tmp).
Based on 013_doxer_portability.diff.
doxer/Config.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/doxer/Config.py b/doxer/Config.py
index c901478..95497c8 100644
--- a/doxer/Config.py
+++ b/doxer/Config.py
@@ -17,11 +17,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
import sys
+import tempfile
# --- constants ---
init_dict = {
'CONFIG_VERSION' : 0.6,
- 'TMP_DIR' : '/tmp',
+ 'TMP_DIR' : tempfile.gettempdir(),
}
# --- constant dictionary ---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]