[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Revert "Add the jobid in the temp directory pre
From: |
David MENTRE |
Subject: |
[Maposmatic-dev] [PATCH] Revert "Add the jobid in the temp directory prefix" |
Date: |
Sat, 21 Apr 2012 13:50:31 +0200 |
Final revert of the three patches made by Thomas to debug an issue. This
debug info breaks ocitysmap-renderer so we revert them.
This reverts commit 1b2cfcbcd8884bd817b2a810efd61bb64aaa5ec1.
This reverts commit c10e75b14773ee41e24a4adbbc3bf6a2da09a500.
This reverts commit 668b02ae936f5723028b99b3b1e082acd03b132d.
---
ocitysmap2/__init__.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/ocitysmap2/__init__.py b/ocitysmap2/__init__.py
index bc32838..2b0d084 100644
--- a/ocitysmap2/__init__.py
+++ b/ocitysmap2/__init__.py
@@ -444,12 +444,8 @@ SELECT ST_AsText(ST_LongestLine(
osm_date = self.get_osm_database_last_update()
- # Ugly way to get the job id, that we need for debugging
- # purposes to get a useful name for the temporary directory.
- jobid = os.path.basename(file_prefix).split('_')[0]
-
# Create a temporary directory for all our shape files
- tmpdir = tempfile.mkdtemp(prefix='ocitysmap-%d-' % int(jobid))
+ tmpdir = tempfile.mkdtemp(prefix='ocitysmap')
try:
LOG.debug('Rendering in temporary directory %s' % tmpdir)
--
1.7.5.4