Changeset 3512:b6e50e9a767d in orange


Ignore:
Timestamp:
04/06/07 14:51:52 (7 years ago)
Author:
Gregor <Gregor@…>
Branch:
default
Convert:
7dd16a98c99dac1b42293c0ee6683c3cada85a2a
Message:
  • create "application data" folder if missing
Location:
orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngRegistry.py

    r3507 r3512  
    213213 
    214214    if os.name == "nt": 
    215         outputDir = os.path.join(os.path.join(user.home, "Application Data"), "Orange")                  # directory for saving settings and stuff 
     215        applicationDir = os.path.join(user.home, "Application Data") 
     216        if not os.path.exists(applicationDir): 
     217            os.mkdir(applicationDir) 
     218        outputDir = os.path.join(applicationDir, "Orange")                  # directory for saving settings and stuff 
    216219    else: 
    217220        outputDir = os.path.join(user.home, "Orange")                  # directory for saving settings and stuff 
  • orange/OrangeWidgets/OWBaseWidget.py

    r3502 r3512  
    106106        # create output directory for widget settings 
    107107        if os.name == "nt": 
     108            if not os.path.exists(os.path.join(user.home, "Application Data")): 
     109                os.mkdir(os.path.join(user.home, "Application Data")) 
    108110            self.outputDir = os.path.join(os.path.join(user.home, "Application Data"), "Orange")                  # directory for saving settings and stuff 
    109111        else: 
Note: See TracChangeset for help on using the changeset viewer.