commit 03f20f7c1c5afb8e1b21d81f96b64124666943d1
Author: Dave Riches <dcr226(a)fedorapeople.org>
Date: Wed Jan 5 19:10:45 2011 +0000
added list isos in path
multiboot-media-creator.py | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/multiboot-media-creator.py b/multiboot-media-creator.py
index 1d9d668..db24484 100644
--- a/multiboot-media-creator.py
+++ b/multiboot-media-creator.py
@@ -1,7 +1,22 @@
#!/bin/python
+import os
+import glob
def lives():
- """This part handles live images""""
+ """This part handles live images"""
def installs():
- """"This part handles installation images"""
+ """This part handles installation images"""
+
+path=os.getcwd() # ok, so this will need to change
+
+def getisos(isopath):
+ isopath=os.path.join(isopath, "*.iso")
+ return glob.glob(isopath)
+
+def makedirs():
+ for i in getisos(path):
+ print i
+
+if __name__ == "__main__":
+ makedirs()
Show replies by date