Import cache store control into console controller

This commit is contained in:
Henrik Nordstrom
2011-01-11 18:04:15 +01:00
parent d11dd742d8
commit 061cea89da
5 changed files with 49 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import re, os, subprocess, datetime, textwrap
import re, os, subprocess, datetime, textwrap, errno
def format_timestamp(s):
@@ -341,3 +341,12 @@ def make_bogus_cert(path):
stdin=subprocess.PIPE
)
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST:
pass
else:
raise