From b0cd5d4c64b28daddb0dfea252e3f656e8e2f64b Mon Sep 17 00:00:00 2001 From: Frankie Date: Tue, 1 Jan 2013 20:59:47 -0500 Subject: [PATCH] Fixed indentation... --- raspiwrite.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/raspiwrite.py b/raspiwrite.py index 054f93a..16eca74 100755 --- a/raspiwrite.py +++ b/raspiwrite.py @@ -170,16 +170,16 @@ def unmount(location): #unmounts the drive so that it can be rewrittern class transferInBackground (threading.Thread): #Runs the dd command in a thread so that I can give a waiting... indicator def run ( self ): - global SDsnip - global path - if OS[0] != 'Darwin': - copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip) - else - copyString = 'dd bs=1m if=%s of=%s' % (path,SDsnip) - print 'Running ' + copyString + '...' - - print getoutput(copyString) - print 'done!' + global SDsnip + global path + if OS[0] != 'Darwin': + copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip) + else: + copyString = 'dd bs=1m if=%s of=%s' % (path,SDsnip) + print 'Running ' + copyString + '...' + + print getoutput(copyString) + print 'done!' def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image @@ -272,10 +272,10 @@ def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image SDsnip = "/dev/mmcblk" + SD[11] else: if OS[0] != 'Darwin': - SDsnip = SD.replace(' ', '')[:-1] + SDsnip = SD.replace(' ', '')[:-1] else: # remove weird partition notation in OS X partition names - SDsnip = SD.replace(' ', '')[:-2] + SDsnip = SD.replace(' ', '')[:-2] print path print '\n\n###################################################################'