Home
last modified time | relevance | path

Searched refs:splitext (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/external/python/cpython3/Lib/test/
Dtest_macpath.py88 splitext = macpath.splitext
89 self.assertEqual(splitext(":foo.ext"), (':foo', '.ext'))
90 self.assertEqual(splitext("foo:foo.ext"), ('foo:foo', '.ext'))
91 self.assertEqual(splitext(".ext"), ('.ext', ''))
92 self.assertEqual(splitext("foo.ext:foo"), ('foo.ext:foo', ''))
93 self.assertEqual(splitext(":foo.ext:"), (':foo.ext:', ''))
94 self.assertEqual(splitext(""), ('', ''))
95 self.assertEqual(splitext("foo.bar.ext"), ('foo.bar', '.ext'))
97 self.assertEqual(splitext(b":foo.ext"), (b':foo', b'.ext'))
98 self.assertEqual(splitext(b"foo:foo.ext"), (b'foo:foo', b'.ext'))
[all …]
Dtest_posixpath.py72 self.assertEqual(posixpath.splitext(path), (filename, ext))
73 self.assertEqual(posixpath.splitext("/" + path), ("/" + filename, ext))
74 self.assertEqual(posixpath.splitext("abc/" + path),
76 self.assertEqual(posixpath.splitext("abc.def/" + path),
78 self.assertEqual(posixpath.splitext("/abc.def/" + path),
80 self.assertEqual(posixpath.splitext(path + "/"),
87 self.assertEqual(posixpath.splitext(path), (filename, ext))
88 self.assertEqual(posixpath.splitext(b"/" + path),
90 self.assertEqual(posixpath.splitext(b"abc/" + path),
92 self.assertEqual(posixpath.splitext(b"abc.def/" + path),
[all …]
/external/python/cpython2/Lib/test/
Dtest_macpath.py53 splitext = macpath.splitext
54 self.assertEqual(splitext(":foo.ext"), (':foo', '.ext'))
55 self.assertEqual(splitext("foo:foo.ext"), ('foo:foo', '.ext'))
56 self.assertEqual(splitext(".ext"), ('.ext', ''))
57 self.assertEqual(splitext("foo.ext:foo"), ('foo.ext:foo', ''))
58 self.assertEqual(splitext(":foo.ext:"), (':foo.ext:', ''))
59 self.assertEqual(splitext(""), ('', ''))
60 self.assertEqual(splitext("foo.bar.ext"), ('foo.bar', '.ext'))
Dtest_posixpath.py59 self.assertEqual(posixpath.splitext(path), (filename, ext))
60 self.assertEqual(posixpath.splitext("/" + path), ("/" + filename, ext))
61 self.assertEqual(posixpath.splitext("abc/" + path), ("abc/" + filename, ext))
62 self.assertEqual(posixpath.splitext("abc.def/" + path), ("abc.def/" + filename, ext))
63 self.assertEqual(posixpath.splitext("/abc.def/" + path), ("/abc.def/" + filename, ext))
64 self.assertEqual(posixpath.splitext(path + "/"), (filename + ext + "/", ""))
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt020fuzzy.py15 inputPath = os.path.splitext(__file__)[0] + '.input'
27 outputPath = os.path.splitext(__file__)[0] + '.output'
Dt018llstar.py15 inputPath = os.path.splitext(__file__)[0] + '.input'
24 outputPath = os.path.splitext(__file__)[0] + '.output'
Dt012lexerXML.py29 inputPath = os.path.splitext(__file__)[0] + '.input'
41 outputPath = os.path.splitext(__file__)[0] + '.output'
/external/google-benchmark/
D.ycm_extra_conf.py75 extension = os.path.splitext( filename )[ 1 ]
85 basename = os.path.splitext( filename )[ 0 ]
/external/python/cpython2/Lib/distutils/
Demxccompiler.py128 (dll_name, dll_extension) = os.path.splitext(
137 os.path.splitext(os.path.basename(output_filename))[0],
190 (base, ext) = os.path.splitext (os.path.normcase(src_name))
Dbcppcompiler.py222 modname, ext = os.path.splitext (tail)
238 (base, ext) = os.path.splitext(os.path.normcase(file))
342 (base, ext) = os.path.splitext (os.path.normcase(src_name))
/external/python/cpython2/Lib/unittest/
Dloader.py222 path = os.path.splitext(os.path.normpath(path))[0]
259 realpath = os.path.splitext(os.path.realpath(mod_file))[0]
260 fullpath_noext = os.path.splitext(os.path.realpath(full_path))[0]
263 mod_name = os.path.splitext(os.path.basename(full_path))[0]
/external/python/cpython3/Lib/
Dmimetypes.py136 base, ext = posixpath.splitext(url)
138 base, ext = posixpath.splitext(base + self.suffix_map[ext])
141 base, ext = posixpath.splitext(base)
Dmacpath.py91 def splitext(p): function
96 splitext.__doc__ = genericpath._splitext.__doc__
/external/selinux/libsemanage/utils/
Dsemanage_migrate_store59 (file, ext) = os.path.splitext(name)
88 (disabledname, disabledext) = os.path.splitext(file)
128 (file, ext) = os.path.splitext(name)
/external/chromium-trace/catapult/common/py_utils/py_utils/
Ddiscover.py42 if os.path.splitext(filename)[1] != '.py':
50 module_name = re.sub(r'[/\\]', '.', os.path.splitext(module_rel_path)[0])
/external/python/cpython2/Lib/
Dmimetypes.py134 base, ext = posixpath.splitext(url)
136 base, ext = posixpath.splitext(base + self.suffix_map[ext])
139 base, ext = posixpath.splitext(base)
Dmacpath.py74 def splitext(p): function
76 splitext.__doc__ = genericpath._splitext.__doc__
/external/swiftshader/third_party/subzero/pydir/
Dcrosstest.py120 base, ext = os.path.splitext(arg)
217 pure_c = os.path.splitext(args.driver)[1] == '.c'
235 base, ext = os.path.splitext(args.driver)
/external/python/cpython3/Lib/distutils/
Dbcppcompiler.py222 modname, ext = os.path.splitext (tail)
238 (base, ext) = os.path.splitext(os.path.normcase(file))
342 (base, ext) = os.path.splitext (os.path.normcase(src_name))
/external/jsoncpp/test/
Drunjsontests.py77 base_path = os.path.splitext(input_path)[0]
85 expected_output_path = os.path.splitext(input_path)[0] + '.expected'
Dgenerate_expected.py6 target = os.path.splitext(path)[0] + '.expected'
/external/python/cpython3/Doc/tools/
Drstlint.py16 from os.path import join, splitext, abspath, exists
188 ext = splitext(fn)[1]
/external/python/cpython2/Doc/tools/
Drstlint.py18 from os.path import join, splitext, abspath, exists
193 ext = splitext(fn)[1]
/external/autotest/client/cros/audio/
Daudio_test_data.py88 original_path_without_ext, _ = os.path.splitext(self.path)
183 path_without_ext, ext = os.path.splitext(path)
/external/tensorflow/tensorflow/contrib/lite/schema/
Dupgrade_schema.py130 basename_no_extension, extension = os.path.splitext(basename)
161 _, extension = os.path.splitext(output_file)

12345678910>>...12