JetPack Linux .patch

Categories Mozilla

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 PYTHONPATH
 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
+
 _OLD_VIRTUAL_PS1="$PS1"
 if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
     # special case for Aspen magic directories

Follow the discussion here.

No Comments

Leave a Reply

Your email address will not be published.

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