MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Split

Method Split

rtpose_wrapper/scripts/cpp_lint.py:930–942  ·  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

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

Callers 3

BaseNameMethod · 0.95
ExtensionMethod · 0.95
NoExtensionMethod · 0.95

Calls 2

RepositoryNameMethod · 0.95
splitMethod · 0.80

Tested by

no test coverage detected