parameters: (envdict)
return_statement: return '\n'.join(commands) + '\n'
docstring: Return the bash command as a string which should be eval'd
  
      Parameters
      ----------
      envdict: dict
          The dict returned by `get_envdict`
docstring_summary: Return the bash command as a string which should be eval'd
docstring_tokens: Return the bash command as a string which should be eval d
function: def get_bash_command(envdict):
      """Return the bash command as a string which should be eval'd
  
      Parameters
      ----------
      envdict: dict
          The dict returned by `get_envdict`
      """
      commands = []
      fmtstr = 'export {key}="{value}"'
      for key, value in envdict.items():
          if os.environ.get(key, '') in ('', '[]') and value is not None:
              commands.append(fmtstr.format(key=key, value=str(value)))
      return '\n'.join(commands) + '\n'
function_tokens: def get_bash_command ( envdict ) : commands = [ ] fmtstr = 'export {key}="{value}"' for key , value in envdict . items ( ) : if os . environ . get ( key , '' ) in ( '' , '[]' ) and value is not None : commands . append ( fmtstr . format ( key = key , value = str ( value ) ) ) return '\n' . join ( commands ) + '\n'