JetPack Linux .patch

May 7, 2011
By Bogomil Shopov
Post Image

If you are under linux and if you are using Mozilla JetPack, here is a patch to your activate script, that will give you the opportunity to work under any console without the need to execute

'source bin/activate' 

on every new bash terminal.

Here is the patch. It will add SDK paths permanently into your .bash_profile

--- activate.old	2011-05-07 14:06:57.000000000 +0300
+++ activate	2011-05-07 14:07:59.000000000 +0300
@@ -62,6 +62,11 @@
 export PATH
+#add variables to the .bash_profile to ensure global visibility
+	echo CUDDLEFISH_ROOT=$CUDDLEFISH_ROOT >> ~/.bash_profile
+	echo PYTHONPATH=$PYTHONPATH >> ~/.bash_profile
+	echo PATH=$PATH >>~/.bash_profile
 if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
     # special case for Aspen magic directories

Follow the discussion here.

Bogomil Shopov

I care about privacy, ethical design, and freedom in many aspects. I spend 20+ years working as a web developer and architect, analyst, manager, and product owner/manager in different environments, several countries, and multiple software industries like Healthcare and Hospitality. I wore many hats, and I use the knowledge gathered to optimize the flow of value across complex systems.

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.