commit 6c2e592fcaed21a7f360240f44a10990d22c10ac
Author: Dave Riches <dcr226(a)fedorapeople.org>
Date: Wed Jan 5 19:31:34 2011 +0000
now creates the required directories in /tmp
multiboot-media-creator.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/multiboot-media-creator.py b/multiboot-media-creator.py
index db24484..867e624 100644
--- a/multiboot-media-creator.py
+++ b/multiboot-media-creator.py
@@ -1,6 +1,7 @@
#!/bin/python
import os
import glob
+import tempfile
def lives():
"""This part handles live images"""
@@ -15,8 +16,14 @@ def getisos(isopath):
return glob.glob(isopath)
def makedirs():
+ mytemp=tempfile.mkdtemp()
for i in getisos(path):
- print i
+ BN=i.strip(".iso"+path)
+ os.makedirs(os.path.join(mytemp, BN,"boot"))
+ os.makedirs(os.path.join(mytemp, BN,"images"))
+ os.makedirs(os.path.join(mytemp, BN,"CHECKSUM"))
+ print mytemp
+
if __name__ == "__main__":
makedirs()
Show replies by date