def load(self):
if self.loaded:<EOL><INDENT>LOGGER.debug('<STR_LIT>')<EOL>return<EOL><DEDENT>try:<EOL><INDENT>basepath, dirs, _ = os.walk(self.path).next()<EOL><DEDENT>except StopIteration:<EOL><INDENT>raise MalformedWorkdir('<STR_LIT>' % self.path)<EOL><DEDENT>full_path = partial(os.path.join, basepath)<EOL>found_current = False<EOL>for dirname in dirs:<EOL><INDENT>if dirname == '<STR_LIT>' and os.path.islink(full_path('<STR_LIT>')):<EOL><INDENT>self.current = os.path.basename(<EOL>os.readlink(full_path('<STR_LIT>'))<EOL>)<EOL>found_current = True<EOL>continue<EOL><DEDENT>elif dirname == '<STR_LIT>':<EOL><INDENT>raise MalformedWorkdir(<EOL>'<STR_LIT>' % self.path<EOL>)<EOL><DEDENT>self.prefixes[dirname] = self.prefix_class(<EOL>prefix=self.join(dirname)<EOL>)<EOL><DEDENT>if not found_current:<EOL><INDENT>raise MalformedWorkdir(<EOL>'<STR_LIT>' % self.path<EOL>)<EOL><DEDENT>self._update_current()<EOL>
Loads the prefixes that are available is the workdir

Returns:
    None

Raises:
    MalformedWorkdir: if the wordir is malformed