Created
January 29, 2013 22:31
-
-
Save gadamc/4668591 to your computer and use it in GitHub Desktop.
simply python script to get the files in a local directory and set up symbolic links to those files in another director
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, glob | |
flist = glob.glob("i*") | |
for f in flist: | |
os.symlink(os.path.join(os.getcwd(), f), os.path.join('/usr/local/bin/', f)) | |