changeset 37fd40f8300f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=37fd40f8300f
description:
        config: expand '~' and '~user' in paths

diffstat:

 configs/common/SysPaths.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 74e7b9b5029c -r 37fd40f8300f configs/common/SysPaths.py
--- a/configs/common/SysPaths.py        Mon Mar 23 16:14:18 2015 -0700
+++ b/configs/common/SysPaths.py        Mon Mar 23 16:14:19 2015 -0700
@@ -27,7 +27,7 @@
 # Authors: Ali Saidi
 
 import os, sys
-from os.path import isdir, join as joinpath
+from os.path import join as joinpath
 from os import environ as env
 
 config_path = os.path.dirname(os.path.abspath(__file__))
@@ -59,6 +59,9 @@
         except KeyError:
             path = [ '/dist/m5/system', '/n/poolfs/z/dist/m5/system' ]
 
+        # expand '~' and '~user' in paths
+        path = map(os.path.expanduser, path)
+
         # filter out non-existent directories
         system.path = filter(os.path.isdir, path)
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to