Changeset 1432:31a9b0bc8e94 in orange


Ignore:
Timestamp:
03/28/05 17:16:56 (9 years ago)
Author:
Gregor <Gregor@…>
Branch:
default
Convert:
33ef401e4ab1c783549a5bac3e89fed13dafb94d
Message:
  • on windows it will save widget settings into widgets directory, while on linux into user.home + orange + widgetSettings dir
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWBaseWidget.py

    r1397 r1432  
    4848 
    4949        # create output directory for widget settings 
    50         self.outputDir = os.path.join(user.home, "Orange") 
     50        if os.name == "nt": self.outputDir = self.widgetDir 
     51        else:               self.outputDir = os.path.join(user.home, "Orange") 
    5152        if not os.path.exists(self.outputDir): os.mkdir(self.outputDir) 
    5253        self.outputDir = os.path.join(self.outputDir, "widgetSettings") 
Note: See TracChangeset for help on using the changeset viewer.