Commits

Aleš Erjavec committed 30a769f

Replaced the use of orngEnviron module in Orange/utils/serverfiles.py

  • Participants
  • Parent commits 787f076

Comments (0)

Files changed (1)

Orange/utils/serverfiles.py

 from contextlib import contextmanager
 
 from Orange.utils import ConsoleProgressBar
+from . import environ
+
 import time, threading
 
 import os
 def localpath(domain=None, filename=None):
     """Return a path for the domain in the local repository. If 
     filename is given, return a path to corresponding file."""
-    import orngEnviron
     if not domain:
-        return os.path.join(orngEnviron.directoryNames["bufferDir"],
-            "bigfiles")
+        return os.path.join(environ.buffer_dir, "bigfiles")
     if filename:
-        return os.path.join(orngEnviron.directoryNames["bufferDir"],
-            "bigfiles", domain, filename)
+        return os.path.join(environ.buffer_dir, "bigfiles", domain, filename)
     else:
-        return os.path.join(orngEnviron.directoryNames["bufferDir"],
-            "bigfiles", domain)
+        return os.path.join(environ.buffer_dir, "bigfiles", domain)
 
 class ServerFiles(object):
     """