commit 9c932b8908671e2618430ebc48841a64e86467b9
Author: Christophe Fergeau <[email protected]>
Date: Tue Jul 19 21:45:11 2011 +0200
python: make mountpoint arg optional in examples
If no mountpoint is passed, we will fallback to the default path
which is /mnt/ipod
bindings/python/examples/play_with_ipod_api.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/bindings/python/examples/play_with_ipod_api.py
b/bindings/python/examples/play_with_ipod_api.py
index 8bc367c..4bf532b 100755
--- a/bindings/python/examples/play_with_ipod_api.py
+++ b/bindings/python/examples/play_with_ipod_api.py
@@ -3,7 +3,11 @@
import gpod
import sys
-db = gpod.Database(sys.argv[1])
+if len(sys.argv) > 1:
+ db = gpod.Database(sys.argv[1])
+else:
+ db = gpod.Database()
+
print db
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2