Created
April 14, 2014 02:17
-
-
Save zhanghui9700/10611261 to your computer and use it in GitHub Desktop.
cache import error and try fixed it
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 | |
import os, sys | |
try: | |
import packstack | |
except ImportError: | |
# packstack isn't installed, running from source checkout | |
sys.path.insert(0, os.path.join(os.path.split(sys.argv[0])[0], "..")) | |
import packstack | |
os.environ["INSTALLER_PROJECT_DIR"] = os.path.abspath(os.path.split(packstack.__file__)[0]) | |
from packstack.installer import run_setup | |
run_setup.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment