def __init__(self, pickle_file_path):
        cmd.Cmd.__init__(self)

        if not os.path.isfile(pickle_file_path):
            print "File %s does not exist." % pickle_file_path
            sys.exit(1)

        try:
            pickle_file = open(pickle_file_path, 'rb')
        except __HOLE__ as e:
            print "Unable to open file %s" % pickle_file_path
            sys.exit(1)

        try:
            self.fs = pickle.load(pickle_file)
        except:
            print ("Unable to load file '%s'. " + \
                "Are you sure it is a valid pickle file?") % \
                (pickle_file_path,)
            sys.exit(1)

        self.pickle_file_path=pickle_file_path

        #get the name of the file so we can display it as the prompt
        path_parts = pickle_file_path.split('/')
        self.fs_name = path_parts[-1]

        self.update_pwd("/")

        self.intro = "\nKippo/Cowrie file system interactive editor\n" + \
            "Donovan Hubbard, Douglas Hubbard, March 2013\n" + \
            "Type 'help' for help\n"
dataset/ETHPy150Open cowrie/cowrie/utils/fsctl.py/fseditCmd.__init__