From 1695947d78d29869308e4176153e0c12d6bfc26f Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 10 Oct 2010 11:15:51 +0000 Subject: [PATCH] Old commit --- aeonview.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/aeonview.py b/aeonview.py index 348cc72..0f3ecd6 100755 --- a/aeonview.py +++ b/aeonview.py @@ -84,6 +84,9 @@ def aeonview(argv): print print "(!) You are running aeonview from", os.getcwdu(), "as the user", os.getlogin() + if options.path == ".": + options.path = os.path.realpath(".") + if options.mode == 'image': # We are now in the gathering mode. @@ -107,7 +110,7 @@ def aeonview(argv): if options.path == None or options.path == ".": if options.verbose == True or options.simulate == True: - print "(!) No destination defined, using:", options.path + print "(!) No destination defined, using:", options.path else: if options.verbose == True or options.simulate == True: print "(!) Using destination:", options.path @@ -118,9 +121,13 @@ def aeonview(argv): # Let us build the destination path and filename options.fileext = os.path.splitext(options.url)[1] + + #if options.fileext not in ['jpg', 'png', 'gif']: + # options.fileext = "jpg" + options.destdir = options.path + "/" + options.project + options.imgpath options.destination = options.destdir + options.imgname + options.fileext - getit = options.url + " > " + options.destination + getit = '"' + options.url + '" > "' + options.destination + '"' # Crude, but works. if options.simulate == False: