summaryrefslogtreecommitdiff
path: root/rtemstoolkit/path.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-10-24 21:35:21 +1100
committerChris Johns <chrisj@rtems.org>2017-10-24 22:21:35 +1100
commitbf58911519afb7ce2117dedadf3d76da436b2361 (patch)
treeaac7608d8153bc72e60164bd2183b8e625dc8730 /rtemstoolkit/path.py
parent52513610668b02c2c3991c75946aa3ed2995e206 (diff)
tester: Refactor to use INI format files for BSP configurations.
- Add support for user condfigurations files with the --user-config. - Add support for a $HOME/.rtemstesterrc for a user configuration. Closes #3204.
Diffstat (limited to 'rtemstoolkit/path.py')
-rw-r--r--rtemstoolkit/path.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rtemstoolkit/path.py b/rtemstoolkit/path.py
index 15dad1b..760f4bd 100644
--- a/rtemstoolkit/path.py
+++ b/rtemstoolkit/path.py
@@ -153,7 +153,6 @@ def removeall(path):
path = host(path)
shutil.rmtree(path, onerror = _onerror)
- return
def expand(name, paths):
l = []
@@ -161,6 +160,11 @@ def expand(name, paths):
l += [join(p, name)]
return l
+def expanduser(path):
+ path = host(path)
+ path = os.path.expanduser(path)
+ return shell(path)
+
def collect_files(path_):
#
# Convert to shell paths and return shell paths.