# # setup.py # # Makes symlinks to all files in this directory # import os # Goes through each file in this directory linking all hidden files for x in os.listdir(os.getcwd()): # If filename starts with '.', and not '.svn' it's a config file if x[0] == '.' and x != '.svn': try: source = os.path.abspath(x) dest = os.path.expanduser('~/%s' % x) os.symlink(source, dest) print "Created symlink to file: %s" % dest except OSError: print "Destination file already exists: %s" % dest