Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BRANCH 4.1: -moved tempdir path set to a location where Config path a…

…lready exists
  • Loading branch information...
commit 2d5d7c21971ec0b87b66fde30244a93ab82860e2 1 parent 9da7946
Remko Noteboom authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/pyasm/common/environment.py
View
15 src/pyasm/common/environment.py
@@ -29,12 +29,6 @@ class EnvironmentException(Exception):
pass
-# set the temp dir
-import tempfile
-tmp_dir = Config.get_value("install", "tmp_dir")
-if tmp_dir:
- tempfile.tempdir = "%s/temp" % tmp_dir
-
class Environment(Base):
"""class which encapsulates the environment the framework is running
@@ -49,6 +43,15 @@ def __init__(my):
if not Environment.IS_INITIALIZED:
my.initialize()
Environment.IS_INITIALIZED = True
+
+ # set the temp dir
+ import tempfile
+ tmp_dir = Config.get_value("install", "tmp_dir")
+ if tmp_dir:
+ tempfile.tempdir = "%s/temp" % tmp_dir
+
+
+
def initialize_python_path(my):
Please sign in to comment.
Something went wrong with that request. Please try again.