#NEWLINE# def _migrate_old_path( ) : #NEWLINE# #INDENT# 'Migrate the old config location (~/.gitup) to the new one.' #NEWLINE# old_path = os . path . expanduser ( os . path . join ( '~' , '.gitup' ) ) #NEWLINE# if ( not os . path . exists ( old_path ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# temp_path = _get_old_path ( ) #NEWLINE# temp_dir = os . path . dirname ( temp_path ) #NEWLINE# if ( not os . path . exists ( temp_dir ) ) : #NEWLINE# #INDENT# os . makedirs ( temp_dir ) #NEWLINE# #UNINDENT# os . rename ( old_path , temp_path )