Created
December 1, 2009 01:52
-
-
Save benatkin/245984 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/python | |
# run this in the directory with mysql5 commands (mysql5, mysqlimport5, etc.) | |
# for MacPorts, I ran it as root in /opt/local/bin | |
# it creates symlinks like so: mysql -> mysql5, mysqlimport -> mysqlimport5, etc. | |
import os | |
for f in [(f, f[:-1]) for f in os.listdir('.') if f.startswith('mysql') and f.endswith('5')]: | |
os.symlink(*f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment