Skip to content

Commit faa2a32

Browse files
committed
FIX-#1918: move tempfile import
Signed-off-by: Alexander Myskov <alexander.myskov@intel.com>
1 parent 0480065 commit faa2a32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modin/engines/ray/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ def initialize_ray(
113113
object_store_memory = os.environ.get("MODIN_MEMORY", None)
114114
plasma_directory = os.environ.get("MODIN_ON_RAY_PLASMA_DIR", None)
115115
if os.environ.get("MODIN_OUT_OF_CORE", "False").title() == "True":
116-
from tempfile import gettempdir
117116

118117
if plasma_directory is None:
118+
from tempfile import gettempdir
119+
119120
plasma_directory = gettempdir()
120121
# We may have already set the memory from the environment variable, we don't
121122
# want to overwrite that value if we have.

0 commit comments

Comments
 (0)