Changeset 3564:c2f32a7f9d21 in orange


Ignore:
Timestamp:
04/20/07 03:55:45 (7 years ago)
Author:
mitar
Branch:
default
Convert:
be725f2dc3dee4955aa9ea482d17675f29bf7f1e
Message:

Changed some default directories for dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngCanvas.pyw

    r3563 r3564  
    44 
    55from qt import * 
    6 import sys, os, cPickle 
     6import sys, os, cPickle, user 
    77import orngTabs, orngDoc, orngDlgs, orngOutput, orngRegistry 
    88 
     
    526526 
    527527    def menuItemSaveOutputWindow(self): 
    528         qname = QFileDialog.getSaveFileName( self.outputDir + "/Output.htm", "HTML Document (*.htm)", self, "", "Save Output To File") 
     528        qname = QFileDialog.getSaveFileName( self.saveSchemaDir + "/Output.htm", "HTML Document (*.htm)", self, "", "Save Output To File") 
    529529        if qname.isEmpty(): return 
    530530        name = str(qname) 
     
    809809        #if not self.settings.has_key("catchOutput"): self.settings["catchOutput"] = 1 
    810810 
    811         self.settings.setdefault("saveSchemaDir", self.outputDir) 
    812         self.settings.setdefault("saveApplicationDir", self.outputDir) 
     811        if sys.platform == "darwin": 
     812            self.settings.setdefault("saveSchemaDir", user.home) 
     813            self.settings.setdefault("saveApplicationDir", user.home) 
     814        else: 
     815            self.settings.setdefault("saveSchemaDir", self.outputDir) 
     816            self.settings.setdefault("saveApplicationDir", self.outputDir) 
    813817        self.settings.setdefault("showSignalNames", 1) 
    814818        self.settings.setdefault("useContexts", 1) 
Note: See TracChangeset for help on using the changeset viewer.