Changeset 7758:b475146decb4 in orange


Ignore:
Timestamp:
03/17/11 11:34:50 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
263aeb6d3093b686d1ead88f5465b032ac46fdcf
Message:

Added create path functions to old module version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngServerFiles.py

    r7744 r7758  
    1717    sf = _sf_with_code(access_code=access_code) 
    1818    return Orange.misc.serverfiles.update(domain, filename, serverfiles=sf, verbose=verbose) 
     19 
     20def createPathForFile(target): 
     21    try: 
     22        os.makedirs(os.path.dirname(target)) 
     23    except OSError: 
     24        pass 
     25  
     26def createPath(target): 
     27    try: 
     28        os.makedirs(target) 
     29    except OSError: 
     30        pass 
Note: See TracChangeset for help on using the changeset viewer.