From 03f5e1b456a1e6bf951965510f7236866ee9f904 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 16:15:48 +0200 Subject: [PATCH] fix emulator and cdist module Signed-off-by: Nico Schottelius --- lib/cdist/__init__.py | 2 ++ lib/cdist/emulator.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cdist/__init__.py b/lib/cdist/__init__.py index 6ce0c788..7aca5ac7 100644 --- a/lib/cdist/__init__.py +++ b/lib/cdist/__init__.py @@ -22,6 +22,8 @@ VERSION = "2.0.3" DOT_CDIST = ".cdist" +import os + class Error(Exception): """Base exception class for this project""" pass diff --git a/lib/cdist/emulator.py b/lib/cdist/emulator.py index 815df948..2df95597 100644 --- a/lib/cdist/emulator.py +++ b/lib/cdist/emulator.py @@ -75,7 +75,7 @@ def run(argv): log.debug(args) object_dir = os.path.join(global_dir, "object", cdist_type, - object_id, cdist.path.DOT_CDIST) + object_id, cdist.DOT_CDIST) log.debug("Object output dir = " + object_dir) param_out_dir = os.path.join(object_dir, "parameter")