#!/usr/bin/python
-
+#
+# $Id$
+# $URL$
+#
# Copyright (c) 2003 Intel Corporation
# All rights reserved.
#
import sha
import cPickle
import utils
+import os
from Exceptions import *
vars['NODE_SESSION'] = session
# NOTE: save session value to /etc/planetlab/session for
# RunlevelAgent and future BootManager runs
+ if not os.path.exists("/etc/planetlab"):
+ os.makedirs("/etc/planetlab")
sessionfile = open('/etc/planetlab/session', 'w')
sessionfile.write( vars['NODE_SESSION'] )
sessionfile.close()