#NEWLINE# def saveDirectory( alias ) : #NEWLINE# #INDENT# 'save a directory to a certain alias/nickname' #NEWLINE# if ( not settings . platformCompatible ( ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# dataFile = open ( settings . getDataFile ( ) , 'wb' ) #NEWLINE# currentDirectory = os . path . abspath ( '.' ) #NEWLINE# directory = { #NEWLINE# #INDENT# alias : currentDirectory , #NEWLINE# #UNINDENT# } #NEWLINE# pickle . dump ( directory , dataFile ) #NEWLINE# speech . success ( ( ( ( alias + ' will now link to ' ) + currentDirectory ) + '.' ) ) #NEWLINE# speech . success ( ( ( "Tip: use 'hallie go to " + alias ) + "' to change to this directory." ) )