def expands_symlinks_for_windows():
 if (sys.platform != 'win32'):
  return
 localdir = os.path.dirname(os.path.abspath(__file__))
 oldpath = sys.path[:]
 sys.path.insert(0, os.path.join(localdir, 'nikola'))
 winutils = __import__('winutils')
 failures = winutils.fix_all_git_symlinked(localdir)
 sys.path = oldpath
 del sys.modules['winutils']
 if (failures != (-1)):
  print 'WARNING: your working copy is now dirty by changes in samplesite, sphinx and themes'
 if (failures > 0):
  raise Exception(('Error: \n DCTB not all symlinked files could be fixed.' + '\n DCTB Your best bet is to start again from clean.'))

def expands_symlinks_for_windows ( ) : if ( sys . platform != 'win32' ) : return localdir = os . path . dirname ( os . path . abspath ( __file__ ) ) oldpath = sys . path [ : ] sys . path . insert ( 0 , os . path . join ( localdir , 'nikola' ) ) winutils = __import__ ( 'winutils' ) failures = winutils . fix_all_git_symlinked ( localdir ) sys . path = oldpath del sys . modules [ 'winutils' ] if ( failures != ( - 1 ) ) : print 'WARNING: your working copy is now dirty by changes in samplesite, sphinx and themes' if ( failures > 0 ) : raise Exception ( ( 'Error: \n DCTB not all symlinked files could be fixed.' + '\n DCTB Your best bet is to start again from clean.' ) )
replaces the symlinked files with a copy of the original content .