Searched refs:_os (Results 1 - 25 of 43) sorted by relevance

12

/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/
H A 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/
H A 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/tensorflow/tensorflow/python/platform/
H A Dresource_loader.py27 import os as _os namespace
48 tensorflow_root = (_os.path.join(
49 _os.path.dirname(__file__), _os.pardir, _os.pardir))
50 path = _os.path.join(tensorflow_root, path)
51 path = _os.path.abspath(path)
65 return _os.path.dirname(_inspect.getfile(_sys._getframe(1)))
87 current_directory = _os.path.basename(candidate_dir)
98 new_candidate_dir = _os
[all...]
/external/chromium-trace/catapult/common/py_utils/py_utils/
H A Dshell_util.py7 import os as _os namespace
15 old_path = _os.getcwd()
16 _os.chdir(new_path)
17 print '> cd', _os.getcwd()
21 _os.chdir(old_path)
36 args = [_os.path.join(*path_parts)] + list(args)
37 env = dict(_os.environ)
/external/python/cpython2/Lib/
H A 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
[all...]
H A Ddumbdbm.py25 import os as _os namespace
45 _os = _os # for _commit() variable in class:_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
[all...]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
H A 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
[all...]
H A 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
[all...]
H A 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
[all...]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
H A 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
[all...]
H A 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
[all...]
H A 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
[all...]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
H A 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
[all...]
H A 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
[all...]
H A 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
[all...]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
H A 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
[all...]
H A 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
[all...]
H A 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
[all...]
/external/python/cpython3/Lib/
H A Dtempfile.py42 import os as _os namespace
54 _text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
55 if hasattr(_os, 'O_NOFOLLOW'):
56 _text_openflags |= _os.O_NOFOLLOW
59 if hasattr(_os, 'O_BINARY'):
60 _bin_openflags |= _os.O_BINARY
62 if hasattr(_os, 'TMP_MAX'):
63 TMP_MAX = _os
[all...]
/external/python/cpython2/Lib/curses/
H A D__init__.py17 import os as _os namespace
32 setupterm(term=_os.environ.get("TERM", "unknown"),
/external/python/cpython3/Lib/curses/
H A D__init__.py14 import os as _os namespace
29 setupterm(term=_os.environ.get("TERM", "unknown"),
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
H A 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/cpython3/Lib/dbm/
H A Ddumb.py26 import os as _os namespace
45 _os = _os # for _commit() variable in class:_Database
77 _os.remove(filename)
121 self._os.unlink(self._bakfile)
126 self._os.rename(self._dirfile, self._bakfile)
286 if hasattr(self._os, 'chmod'):
287 self._os.chmod(file, self._mode)
313 um = _os.umask(0)
314 _os
[all...]
/external/python/cpython2/Lib/ctypes/
H A 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
[all...]
/external/python/cpython3/Lib/ctypes/
H A D__init__.py3 import os as _os, sys as _sys namespace
19 if _os.name == "nt":
23 if _os.name == "posix" and _sys.platform == "darwin":
29 if int(_os.uname().release.split('.')[0]) < 8:
106 if _os.name == "nt":
132 elif _os.name == "posix":
262 if _os.name == "nt":
378 if _os.name == "nt":
431 if _os.name == "nt":
439 if _os
[all...]

Completed in 2696 milliseconds

12