Home
last modified time | relevance | path

Searched refs:_os (Results 1 – 25 of 65) sorted by relevance

123

/external/python/cpython2/Lib/
Dtempfile.py33 import os as _os namespace
65 _text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
66 if hasattr(_os, 'O_NOINHERIT'):
67 _text_openflags |= _os.O_NOINHERIT
68 if hasattr(_os, 'O_NOFOLLOW'):
69 _text_openflags |= _os.O_NOFOLLOW
72 if hasattr(_os, 'O_BINARY'):
73 _bin_openflags |= _os.O_BINARY
75 if hasattr(_os, 'TMP_MAX'):
76 TMP_MAX = _os.TMP_MAX
[all …]
Ddumbdbm.py25 import os as _os namespace
45 _os = _os # for _commit() variable in _Database
57 self._dirfile = filebasename + _os.extsep + 'dir'
63 self._datfile = filebasename + _os.extsep + 'dat'
64 self._bakfile = filebasename + _os.extsep + 'bak'
105 self._os.unlink(self._bakfile)
106 except self._os.error:
110 self._os.rename(self._dirfile, self._bakfile)
111 except self._os.error:
224 if hasattr(self._os, 'chmod'):
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Dshell.py31 import os as _os namespace
36 cwd = _os.path.dirname(_os.path.abspath(_sys.argv[0]))
63 path = _os.path.sep.join(path.split('/'))
64 return _os.path.normpath(_os.path.join(cwd, path))
80 _os.unlink(native(dest))
88 if _os.path.exists(dest):
90 _os.chmod(native(path), 0644)
117 _text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
118 _text_openflags |= getattr(_os, 'O_NOINHERIT', 0)
119 _text_openflags |= getattr(_os, 'O_NOFOLLOW', 0)
[all …]
Dsetup.py29 import os as _os namespace
89 if filename and _os.path.isfile(filename):
101 if filename and _os.path.isfile(filename):
127 if filename and _os.path.isfile(filename):
146 if filename and _os.path.isfile(filename):
165 if filename and _os.path.isfile(filename):
180 sep = _os.path.sep
182 sep = _os.path.join('1', '2')[1:-1]
184 for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
189 _os.path.normpath(dirpath).replace(sep, '.')
[all …]
Ddata.py28 import os as _os namespace
37 drive, path = '', _os.path.normpath(path)
39 splitunc = _os.path.splitunc
45 drive, path = _os.path.splitdrive(path)
48 sep = _os.path.sep
50 sep = _os.path.join('1', '2')[1:-1]
52 prefix, path = _os.path.split(path)
55 drive = _os.path.join(drive, prefix)
151 normalized = _os.path.normpath(manpage)
152 _, ext = _os.path.splitext(normalized)
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Dshell.py31 import os as _os namespace
36 cwd = _os.path.dirname(_os.path.abspath(_sys.argv[0]))
63 path = _os.path.sep.join(path.split('/'))
64 return _os.path.normpath(_os.path.join(cwd, path))
80 _os.unlink(native(dest))
88 if _os.path.exists(dest):
90 _os.chmod(native(path), 0644)
117 _text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
118 _text_openflags |= getattr(_os, 'O_NOINHERIT', 0)
119 _text_openflags |= getattr(_os, 'O_NOFOLLOW', 0)
[all …]
Dsetup.py29 import os as _os namespace
89 if filename and _os.path.isfile(filename):
101 if filename and _os.path.isfile(filename):
127 if filename and _os.path.isfile(filename):
146 if filename and _os.path.isfile(filename):
165 if filename and _os.path.isfile(filename):
180 sep = _os.path.sep
182 sep = _os.path.join('1', '2')[1:-1]
184 for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
189 _os.path.normpath(dirpath).replace(sep, '.')
[all …]
Ddata.py28 import os as _os namespace
37 drive, path = '', _os.path.normpath(path)
39 splitunc = _os.path.splitunc
45 drive, path = _os.path.splitdrive(path)
48 sep = _os.path.sep
50 sep = _os.path.join('1', '2')[1:-1]
52 prefix, path = _os.path.split(path)
55 drive = _os.path.join(drive, prefix)
151 normalized = _os.path.normpath(manpage)
152 _, ext = _os.path.splitext(normalized)
[all …]
/external/python/cpython3/Lib/
Dtempfile.py42 import os as _os namespace
52 _text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
53 if hasattr(_os, 'O_NOFOLLOW'):
54 _text_openflags |= _os.O_NOFOLLOW
57 if hasattr(_os, 'O_BINARY'):
58 _bin_openflags |= _os.O_BINARY
60 if hasattr(_os, 'TMP_MAX'):
61 TMP_MAX = _os.TMP_MAX
78 _os.lstat(fn)
115 prefix = _os.fsencode(template)
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Dshell.py29 import os as _os namespace
35 cwd = _os.path.dirname(_os.path.abspath(_sys.argv[0]))
62 path = _os.path.sep.join(path.split('/'))
63 return _os.path.normpath(_os.path.join(cwd, path))
79 _os.unlink(native(dest))
87 if _os.path.exists(dest):
89 _os.chmod(native(path), 0o644)
102 _os.write(fd, ((r"""
126 fd, _ = None, _os.close(fd)
170 _os.close(fd)
[all …]
Dsetup.py29 import os as _os namespace
90 if filename and _os.path.isfile(filename):
102 if filename and _os.path.isfile(filename):
128 if filename and _os.path.isfile(filename):
147 if filename and _os.path.isfile(filename):
166 if filename and _os.path.isfile(filename):
181 sep = _os.path.sep
183 sep = _os.path.join('1', '2')[1:-1]
185 for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
190 _os.path.normpath(dirpath).replace(sep, '.')
[all …]
Ddata.py28 import os as _os namespace
37 drive, path = '', _os.path.normpath(path)
39 splitunc = _os.path.splitunc
45 drive, path = _os.path.splitdrive(path)
48 sep = _os.path.sep
50 sep = _os.path.join('1', '2')[1:-1]
52 prefix, path = _os.path.split(path)
55 drive = _os.path.join(drive, prefix)
151 normalized = _os.path.normpath(manpage)
152 _, ext = _os.path.splitext(normalized)
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Dshell.py29 import os as _os namespace
35 cwd = _os.path.dirname(_os.path.abspath(_sys.argv[0]))
62 path = _os.path.sep.join(path.split('/'))
63 return _os.path.normpath(_os.path.join(cwd, path))
79 _os.unlink(native(dest))
87 if _os.path.exists(dest):
89 _os.chmod(native(path), 0o644)
102 _os.write(fd, ((r"""
126 fd, _ = None, _os.close(fd)
170 _os.close(fd)
[all …]
Dsetup.py29 import os as _os namespace
90 if filename and _os.path.isfile(filename):
102 if filename and _os.path.isfile(filename):
128 if filename and _os.path.isfile(filename):
147 if filename and _os.path.isfile(filename):
166 if filename and _os.path.isfile(filename):
181 sep = _os.path.sep
183 sep = _os.path.join('1', '2')[1:-1]
185 for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
190 _os.path.normpath(dirpath).replace(sep, '.')
[all …]
Ddata.py28 import os as _os namespace
37 drive, path = '', _os.path.normpath(path)
39 splitunc = _os.path.splitunc
45 drive, path = _os.path.splitdrive(path)
48 sep = _os.path.sep
50 sep = _os.path.join('1', '2')[1:-1]
52 prefix, path = _os.path.split(path)
55 drive = _os.path.join(drive, prefix)
151 normalized = _os.path.normpath(manpage)
152 _, ext = _os.path.splitext(normalized)
[all …]
/external/tensorflow/tensorflow/python/platform/
Dresource_loader.py20 import os as _os namespace
60 return _os.path.dirname(_inspect.getfile(_sys._getframe(1)))
82 current_directory = _os.path.basename(candidate_dir)
93 new_candidate_dir = _os.path.dirname(candidate_dir)
123 _os.path.abspath(_os.path.join('tensorflow', path)))
124 if new_fpath is not None and _os.path.exists(new_fpath):
128 old_filepath = _os.path.join(
129 _os.path.dirname(_inspect.getfile(_sys._getframe(1))), path)
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dshell_util.py9 import os as _os namespace
17 old_path = _os.getcwd()
18 _os.chdir(new_path)
19 print('> cd', _os.getcwd())
23 _os.chdir(old_path)
38 args = [_os.path.join(*path_parts)] + list(args)
39 env = dict(_os.environ)
/external/tensorflow/tensorflow/
Dapi_template.__init__.py36 import os as _os namespace
45 _os.environ['TF2_BEHAVIOR'] = '1'
57 _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
141 _main_dir = _os.path.join(_s, 'tensorflow/core/kernels')
142 if _os.path.exists(_main_dir):
146 _plugin_dir = _os.path.join(_s, 'tensorflow-plugins')
147 if _os.path.exists(_plugin_dir):
Dapi_template_v1.__init__.py23 import os as _os namespace
58 _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
150 _main_dir = _os.path.join(_s, 'tensorflow/core/kernels')
151 if _os.path.exists(_main_dir):
155 _plugin_dir = _os.path.join(_s, 'tensorflow-plugins')
156 if _os.path.exists(_plugin_dir):
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/
D__init__.py27 import os as _os namespace
31 __path__ = [_os.path.join(__path__[0], 'py2')]
34 __path__ = [_os.path.join(__path__[0], 'py3')]
37 del _os, _sys
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/
D__init__.py27 import os as _os namespace
31 __path__ = [_os.path.join(__path__[0], 'py2')]
34 __path__ = [_os.path.join(__path__[0], 'py3')]
37 del _os, _sys
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drun_tests.py29 import os as _os namespace
96 example=_os.path.basename(example),
105 strip = len(basedir) - len(_os.path.basename(basedir))
114 if not _os.path.isdir(_os.path.join(basedir, dirname, 'out')):
120 _os.path.join(dirname, filename),
121 _os.path.join(dirname, 'out', filename[:-4] + '.out'),
/external/python/cpython2/Lib/ctypes/
D__init__.py3 import os as _os, sys as _sys namespace
19 if _os.name in ("nt", "ce"):
23 if _os.name == "posix" and _sys.platform == "darwin":
29 if int(_os.uname()[2].split('.')[0]) < 8:
108 if _os.name in ("nt", "ce"):
111 if _os.name == "ce":
137 elif _os.name == "posix":
242 if _os.name == "nt":
265 if _os.name in ("nt", "ce"):
283 if _os.name in ("nt", "ce"):
[all …]
/external/python/setuptools/setuptools/
Dsandbox.py18 import org.python.modules.posix.PosixModule as _os namespace
20 _os = sys.modules[os.name] variable
264 name for name in dir(_os)
284 self._copy(_os)
292 original = getattr(_os, name)
302 if hasattr(_os, name):
306 original = original or getattr(_os, name)
323 if hasattr(_os, name):
327 original = getattr(_os, name)
338 if hasattr(_os, name):
[all …]
/external/python/cpython3/Lib/dbm/
Ddumb.py26 import os as _os namespace
45 _os = _os # for _commit() variable in _Database
77 _os.remove(filename)
120 self._os.unlink(self._bakfile)
125 self._os.rename(self._dirfile, self._bakfile)
281 self._os.chmod(file, self._mode)
307 um = _os.umask(0)
308 _os.umask(um)

123