Bogomil Shopov

Human. Artist. Hacker. I care about free and open-source software(F/LOSS), cybersecurity, ethical design, privacy, and technology. 20+ experience in technology. 40+ in being human. I encourage people to become better humans with heavy metal and technologies. I also promote technologies to be considerate of humans. Let's see how it goes!

Mozilla · May 7, 2011

JetPack Linux .patch

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.