Revision 1fbb19fa lib/pathutils.py

b/lib/pathutils.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
29 29

  
30 30

  
31 31
# Build-time constants
32
DEFAULT_FILE_STORAGE_DIR = vcluster.AddNodePrefix(_autoconf.FILE_STORAGE_DIR)
33
DEFAULT_SHARED_FILE_STORAGE_DIR = \
34
  vcluster.AddNodePrefix(_autoconf.SHARED_FILE_STORAGE_DIR)
32
if _autoconf.ENABLE_FILE_STORAGE:
33
  DEFAULT_FILE_STORAGE_DIR = vcluster.AddNodePrefix(_autoconf.FILE_STORAGE_DIR)
34
else:
35
  DEFAULT_FILE_STORAGE_DIR = _autoconf.FILE_STORAGE_DIR
36
if _autoconf.ENABLE_SHARED_FILE_STORAGE:
37
  DEFAULT_SHARED_FILE_STORAGE_DIR = \
38
    vcluster.AddNodePrefix(_autoconf.SHARED_FILE_STORAGE_DIR)
39
else:
40
  DEFAULT_SHARED_FILE_STORAGE_DIR = _autoconf.SHARED_FILE_STORAGE_DIR
35 41
EXPORT_DIR = vcluster.AddNodePrefix(_autoconf.EXPORT_DIR)
36 42
OS_SEARCH_PATH = _autoconf.OS_SEARCH_PATH
37 43
ES_SEARCH_PATH = _autoconf.ES_SEARCH_PATH

Also available in: Unified diff