Skip to content

Instantly share code, notes, and snippets.

#!/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: