#!/usr/bin/env python
import os

cdir = os.path.dirname(os.path.abspath(__file__))
sourcedir = os.path.join(cdir, 'src')
targetdir = '~'

for dotfile in os.listdir(sourcedir):
  source = os.path.join(sourcedir, dotfile)
  target = os.path.join(targetdir, dotfile)
  ##TODO## :: Look at why os.symlink doesn't like relative paths
  os.system("ln -s %s %s" % (source, target))


#!/usr/bin/env python
import os

cdir = os.path.dirname(os.path.abspath(__file__))
sourcedir = os.path.join(cdir, 'src')
targetdir = os.path.expanduser('~')

for dotfile in os.listdir(sourcedir):
  source = os.path.join(sourcedir, dotfile)
  target = os.path.join(targetdir, dotfile)
  ##TODO## :: Look at why os.symlink doesn't like relative paths
  os.system("ln -s %s %s" % (source, target))


Make home directory selection more portable