Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'pactest/util.py')
-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: