From 53735e28159d095049937ae824cb747da71a42bf Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 23 Apr 2012 21:17:14 +0200 Subject: [PATCH] Revert "Add the jobid in the temp directory prefix" This reverts commit 1b2cfcbcd8884bd817b2a810efd61bb64aaa5ec1. --- ocitysmap2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))