Home
last modified time | relevance | path

Searched refs:expanduser (Results 1 – 25 of 178) sorted by relevance

12345678

/external/python/cpython3/Lib/test/
Dtest_posixpath.py232 self.assertEqual(posixpath.expanduser("foo"), "foo")
233 self.assertEqual(posixpath.expanduser(b"foo"), b"foo")
238 self.assertEqual(posixpath.expanduser("~"), "/home/victor")
242 self.assertEqual(posixpath.expanduser("~"), "/home/victor")
247 self.assertEqual(posixpath.expanduser("~"), "/")
248 self.assertEqual(posixpath.expanduser("~/"), "/")
249 self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
254 self.assertIsInstance(posixpath.expanduser("~/"), str)
255 self.assertIsInstance(posixpath.expanduser(b"~/"), bytes)
258 if posixpath.expanduser("~") != '/':
[all …]
Dtest_pathlib.py1283 q = self.cls(os.path.expanduser('~'))
1321 self.assertEqual(p.expanduser(), P(os.path.expanduser('~')))
1323 self.assertEqual(p.expanduser(), p)
1325 self.assertEqual(p.expanduser(), p)
1327 self.assertEqual(p.expanduser(), p)
1329 self.assertEqual(p.expanduser(), p)
2163 self.assertEqual(p1.expanduser(), P(userhome) / 'Documents')
2164 self.assertEqual(p2.expanduser(), P(userhome) / 'Documents')
2165 self.assertEqual(p3.expanduser(), P(otherhome) / 'Documents')
2166 self.assertEqual(p4.expanduser(), p4)
[all …]
/external/python/setuptools/pkg_resources/_vendor/
Dappdirs.py88 path = os.path.expanduser('~/Library/Application Support/')
92 path = os.getenv('XDG_DATA_HOME', os.path.expanduser("~/.local/share"))
141 path = os.path.expanduser('/Library/Application Support')
149 pathlist = [os.path.expanduser(x.rstrip(os.sep)) for x in path.split(os.pathsep)]
198 path = os.getenv('XDG_CONFIG_HOME', os.path.expanduser("~/.config"))
244 pathlist = [os.path.expanduser(x.rstrip(os.sep)) for x in path.split(os.pathsep)]
302 path = os.path.expanduser('~/Library/Caches')
306 path = os.getenv('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
348 os.path.expanduser('~/Library/Logs'),
/external/python/cpython2/Lib/test/
Dtest_posixpath.py264 self.assertEqual(posixpath.expanduser("foo"), "foo")
268 self.assertEqual(posixpath.expanduser("~"), "/")
269 self.assertEqual(posixpath.expanduser("~/"), "/")
270 self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
276 self.assertIsInstance(posixpath.expanduser("~/"), basestring)
278 if posixpath.expanduser("~") != '/':
280 posixpath.expanduser("~") + "/",
281 posixpath.expanduser("~/")
283 self.assertIsInstance(posixpath.expanduser("~root/"), basestring)
284 self.assertIsInstance(posixpath.expanduser("~foo/"), basestring)
[all …]
/external/toolchain-utils/crosperf/
Dtranslate_xbuddy.py9 dev_path = os.path.expanduser('~/trunk/src/platform/dev')
23 config_path = os.path.expanduser('~/trunk/src/platform/dev/'
Dlabel.py36 chromeos_root = os.path.expanduser(chromeos_root)
38 chromeos_image = os.path.expanduser(chromeos_image)
/external/skia/tools/rebaseline/
Dtoggle_legacy_flag.py101 G3_SCRIPT_DIR = os.path.expanduser("~/skia-g3/scripts")
144 args.chromium_dir = os.path.expanduser(args.chromium_dir)
151 args.android_dir = os.path.expanduser(args.android_dir)
/external/skqp/tools/rebaseline/
Dtoggle_legacy_flag.py101 G3_SCRIPT_DIR = os.path.expanduser("~/skia-g3/scripts")
144 args.chromium_dir = os.path.expanduser(args.chromium_dir)
151 args.android_dir = os.path.expanduser(args.android_dir)
/external/toolchain-utils/
Dverify_compiler.py178 filename = os.path.realpath(os.path.expanduser(options.filename))
181 tmp_dir = os.path.realpath(os.path.expanduser(options.tmp_dir))
184 root_dir = os.path.realpath(os.path.expanduser(options.root_dir))
Dtc_enter_chroot.py135 chromeos_root = os.path.expanduser(chromeos_root)
137 options.toolchain_root = os.path.expanduser(options.toolchain_root)
171 version_dir = os.path.realpath(os.path.expanduser(os.path.dirname(__file__)))
Dweekly_report.py204 os.path.expanduser('~/nightly_test_reports'),
243 os.path.exists(os.path.expanduser(MAIL_PROGRAM))):
/external/python/cpython3/Lib/ctypes/macholib/
Ddyld.py18 os.path.expanduser("~/Library/Frameworks"),
25 os.path.expanduser("~/lib"),
/external/python/apitools/apitools/gen/
Dgen_client.py51 infile = os.path.expanduser(args.infile) or '/dev/stdin'
89 outdir = os.path.expanduser(args.outdir) or client_info.default_directory
175 original_outdir = os.path.expanduser(args.outdir)
/external/python/cpython3/Lib/idlelib/
Dmacosx.py4 from os.path import expanduser
99 plist_path = expanduser('~/Library/Preferences/.GlobalPreferences.plist')
/external/python/cpython2/Lib/ctypes/macholib/
Ddyld.py18 os.path.expanduser("~/Library/Frameworks"),
25 os.path.expanduser("~/lib"),
/external/python/cpython3/Lib/distutils/tests/
Dtest_install.py83 self.old_expand = os.path.expanduser
84 os.path.expanduser = _expanduser
91 os.path.expanduser = self.old_expand
/external/python/cpython2/Lib/distutils/tests/
Dtest_install.py85 self.old_expand = os.path.expanduser
86 os.path.expanduser = _expanduser
93 os.path.expanduser = self.old_expand
Dtest_dist.py222 old_expander = os.path.expanduser
223 os.path.expanduser = _expander
232 os.path.expanduser = old_expander
/external/python/cpython2/Lib/lib-tk/
DFileDialog.py113 dir_or_file = os.path.expanduser(dir_or_file)
190 filter = os.path.expanduser(filter)
197 file = os.path.expanduser(file)
/external/python/cpython2/Tools/pybench/
DCommandLine.py132 expandvars=os.path.expandvars,expanduser=os.path.expanduser, argument
146 path = expanduser(path)
/external/python/cpython2/Lib/
Duser.py33 home = os.path.expanduser("~/")
/external/python/cpython3/Mac/IDLE/IDLE.app/Contents/Resources/
Didlemain.py8 os.chdir(os.path.expanduser('~/Documents'))
/external/python/cpython2/Mac/IDLE/
Didlemain.py8 os.chdir(os.path.expanduser('~/Documents'))
/external/python/cpython2/Demo/tkinter/ttk/
Dplastik_theme.py38 imgdir = os.path.expanduser(imgdir)
/external/toolchain-utils/automation/common/
Dcommand.py189 from_path = os.path.expanduser(from_path) + '/'
190 to_path = os.path.expanduser(to_path) + '/'

12345678