Using Rope or Ropemacs with Python Virtualenv
_ _ _ ___ _ _ _ _ /_\ | |_ __ ___ __| |_ / _ \| |__ ___ ___| |___| |_ ___ _ _ ___| |_ / _ \| | ' \/ _ (_-< _| (_) | '_ (_-</ _ \ / -_) _/ -_)_| ' \/ -_) _| /_/ \_\_|_|_|_/__/ | /|_.__/__/ /_ | \___\___|\__| In Glorious ASCII-VISION
Using Rope or Ropemacs with Python Virtualenv
To make Rope use the libraries in your virtualenv: edit config.py in the .ropeproject directory (in the Rope project you want to set this up for) and add the following lines at the top of the "set_prefs" function:
VIRTUAL_ENV = "/home/yourname/envs/envname/" ACTIVATE_FILE = VIRTUAL_ENV + "bin/activate_this.py" execfile(ACTIVATE_FILE, dict(__file__=ACTIVATE_FILE))
Simple :)
__________________ < made in Org-mode > ------------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ | | ----w | || || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^