summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpactest/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pactest/util.py b/pactest/util.py
index 72777ca0..b24bfdcf 100755
--- a/pactest/util.py
+++ b/pactest/util.py
@@ -103,7 +103,8 @@ def mkfile(name, data = ""):
return
if islink:
curdir = os.getcwd()
- os.chdir(path)
+ if path:
+ os.chdir(path)
os.symlink(link, os.path.basename(filename))
os.chdir(curdir)
else: