aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/mkdtemp
diff options
context:
space:
mode:
authorklaar36 <klas.arvidsson@liu.se>2017-05-19 15:05:06 +0200
committerklaar36 <klas.arvidsson@liu.se>2017-05-19 15:05:06 +0200
commit3b39301d34d7a000325a42bbcfe880b53ac26154 (patch)
tree9f5a239bf47da78358645c2ad1136972121cece7 /src/utils/mkdtemp
parent6fea0f8ce4ba0d08a414a1650c829afbef285f70 (diff)
downloadpintos-rs-3b39301d34d7a000325a42bbcfe880b53ac26154.tar.gz
imported misc scripts
Diffstat (limited to 'src/utils/mkdtemp')
-rwxr-xr-xsrc/utils/mkdtemp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/mkdtemp b/src/utils/mkdtemp
new file mode 100755
index 0000000..b4cb2a1
--- /dev/null
+++ b/src/utils/mkdtemp
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+import tempfile
+from os.path import expanduser
+
+home = expanduser("~")
+tempfile.mkdtemp(prefix='TDIU16', dir=home)