parameters: (self)
return_statement: return None
docstring: :return: The path to the directory of a package. None in case it's not
                   a package.
docstring_summary: :return: The path to the directory of a package. None in case it's not
                   a package.
docstring_tokens: : return : The path to the directory of a package . None in case it s not a package .
function: def _get_init_directory(self):
          """
          :return: The path to the directory of a package. None in case it's not
                   a package.
          """
          for suffix in all_suffixes():
              ending = '__init__' + suffix
              py__file__ = self.py__file__()
              if py__file__ is not None and py__file__.endswith(ending):
                  # Remove the ending, including the separator.
                  return self.py__file__()[:-len(ending) - 1]
          return None
function_tokens: def _get_init_directory ( self ) : for suffix in all_suffixes ( ) : ending = '__init__' + suffix py__file__ = self . py__file__ ( ) if py__file__ is not None and py__file__ . endswith ( ending ) : # Remove the ending, including the separator. return self . py__file__ ( ) [ : - len ( ending ) - 1 ] return None