Skip to content

Commit

Permalink
Merge pull request jonabbey#1 from johnkw/master
Browse files Browse the repository at this point in the history
Fix attachlog.txt location. Minor logging additions.
  • Loading branch information
jonabbey committed Apr 16, 2014
2 parents 77f99d0 + 4987bc8 commit d36fe4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Eudora2Unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def show_attachment_stats():
total_attachments_listed = 0
total_attachments_found = 0

attachlog = "/VOLUMES/huckabay/attachlog.txt"
attachlog = "attachlog.txt"

print "\nWriting attachment statistics to %s\n" % (attachlog,)

Expand Down Expand Up @@ -641,12 +641,14 @@ def get_eudora_boxname( f, nameMap, isMac ):
return re_mbx_sfx.sub( '\\1', f )

def moveFile( src, dst ):
print 'Moving "%s" to "%s"' % (str, dst)
try:
os.rename( src, dst )
except OSError, ( errno, strerror ):
exit_msg( cannot_move_complaint( src, dst, strerror ) )

def removeFile( filename ):
print 'Removing %s' % filename
try:
os.remove( filename )
except OSError, ( errno, strerror ):
Expand Down
1 change: 1 addition & 0 deletions EudoraTOC.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def parse( infile, outfile = None ):
raise TOCError( "EudoraTOC: couldn't open file " + infile )

if outfile:
print 'Writing %s' % outfile
try:
out = open( outfile, "w" )
except IOError, ( errno, strerror ):
Expand Down

0 comments on commit d36fe4a

Please sign in to comment.