MCPcopy Create free account
hub / github.com/BVLC/caffe / Split

Method Split

scripts/cpp_lint.py:934–946  ·  view source on GitHub ↗

Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browser', '.cc') Returns: A tuple of (directory, basename, extension).

(self)

Source from the content-addressed store, hash-verified

932 return fullname
933
934 def Split(self):
935 """Splits the file into the directory, basename, and extension.
936
937 For 'chrome/browser/browser.cc', Split() would
938 return ('chrome/browser', 'browser', '.cc')
939
940 Returns:
941 A tuple of (directory, basename, extension).
942 """
943
944 googlename = self.RepositoryName()
945 project, rest = os.path.split(googlename)
946 return (project,) + os.path.splitext(rest)
947
948 def BaseName(self):
949 """File base name - text after the final slash, before the final period."""

Callers 3

BaseNameMethod · 0.95
ExtensionMethod · 0.95
NoExtensionMethod · 0.95

Calls 1

RepositoryNameMethod · 0.95

Tested by

no test coverage detected