def conda_prefix(user=None):
if user == '<STR_LIT:root>':<EOL><INDENT>return __salt__['<STR_LIT>']('<STR_LIT>', default='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>if user is None:<EOL><INDENT>user = __salt__['<STR_LIT>']('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>for u in pwd.getpwall():<EOL><INDENT>if u.pw_name == user:<EOL><INDENT>return os.path.join(u.pw_dir, '<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>
Get the conda prefix for a particular user (~/anaconda)
If user is None it defaults to /opt/anaconda