diff --git a/run-exp.py b/run-exp.py
index 72cda439a216ff39e19db7df6e91f4b8761a04ad..fe326a5d3261cf9f45a7616fb0aab55d05a80f64 100755
--- a/run-exp.py
+++ b/run-exp.py
@@ -40,7 +40,7 @@ class Variable:
         assert var_type in ["file", "range"], "Unsupported variable type."
 
         if var_type == "file":
-            directory = pathlib.Path(value_config["directory"])
+            directory = pathlib.Path(value_config["directory"]).expanduser()
             assert directory.exists() and directory.is_dir()
 
             values = list(directory.iterdir())