maposmatic-dev
[Top][All Lists]
Advanced

[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 12:38:06 +0200

This reverts commit 1b2cfcbcd8884bd817b2a810efd61bb64aaa5ec1.

The issue is sorted out and we no longer need this patch that breaks
ocitysmap-renderer2.
---
 ocitysmap2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ocitysmap2/__init__.py b/ocitysmap2/__init__.py
index bc32838..75bdc0c 100644
--- a/ocitysmap2/__init__.py
+++ b/ocitysmap2/__init__.py
@@ -446,7 +446,7 @@ SELECT ST_AsText(ST_LongestLine(
 
         # 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]
+        jobid = file_prefix.split('_')[0]
 
         # Create a temporary directory for all our shape files
         tmpdir = tempfile.mkdtemp(prefix='ocitysmap-%d-' % int(jobid))
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]