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/env python | |
import os, subprocess | |
#TODO: make this script generic so it can take options for what env var to get choices from, what env var to write them to, and where the target symlink should be | |
home = os.path.expanduser("~") | |
symlink_path = os.path.join(home, 'cassandra_for_ccm') | |
current_cass_dir = os.environ.get('CASSANDRA_DIR', None) | |
if not current_cass_dir == symlink_path: |