fix creating of ~ subdirectory on tempfiles.py
Change-Id: If2eb44242825ae73dbdfb5d550fdf6ac867a8976
diff --git a/tempfiles.py b/tempfiles.py
index a3fdc00..ac7dbca 100644
--- a/tempfiles.py
+++ b/tempfiles.py
@@ -51,7 +51,8 @@
subdirs.append(_)
if type(subdirs) in (list, tuple):
for s in subdirs:
- os.makedirs(os.path.join(temp_dir, s.strip(os.path.sep)))
+ os.makedirs(os.path.join(temp_dir,
+ s.strip(os.path.sep + '~')))
else:
raise Exception('subdirs should be tuple or list of strings, '
'but currentry subdirs == {}'.format(subdirs))