Changeset - 342f8434ed14
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-10-06 11:27:41
marcin@python-works.com
fixed creation of cache data dir, on first run
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/meta.py
Show inline comments
 
@@ -28,7 +28,12 @@ Base = declarative_base()
 
#===============================================================================
 
# CACHE OPTIONS
 
#===============================================================================
 
cache_dir = jn(dn(dn(dn(abspath(__file__)))), 'data', 'cache')
 
cache_base = jn(dn(dn(dn(abspath(__file__)))), 'data')
 
cache_dir = jn(cache_base, 'cache')
 

	
 
if not os.path.isdir(cache_base):
 
    os.mkdir(cache_base)
 

	
 
if not os.path.isdir(cache_dir):
 
    os.mkdir(cache_dir)
 
# set start_time to current time
0 comments (0 inline, 0 general)