1. biolab
  2. Untitled project
  3. orange-1.0

Commits

mitar  committed d3ae73f

Moved Orange user dir on Mac.

  • Participants
  • Parent commits 7e92f70
  • Branches default

Comments (0)

Files changed (1)

File orange/OrangeCanvas/orngRegistry.py

View file
             try: os.mkdir(applicationDir)
             except: pass
         outputDir = os.path.join(applicationDir, "Orange")                  # directory for saving settings and stuff
+    elif sys.platform == "darwin":
+        applicationDir = os.path.join(user.home, "Library")
+        applicationDir = os.path.join(user.home, "Application Support")
+        outputDir = os.path.join(applicationDir, "Orange")
     else:
         outputDir = os.path.join(user.home, "Orange")                  # directory for saving settings and stuff
     if not os.path.exists(outputDir):