Make exporting of the PATH Variable really work.
Make exporting of the PATH Variable really work.

The preceding code didn't work for a few reasons
*Python doesn't resolve '~'
*The code was at the wrong position
*You cannot use the source command, it's not a program but a shell built in routine which isn't available in os.system
*You cannot use 'export' because it doesn't affect following commands

This patch fixes these issues by parsing ~.profile for the added export-command and setting the path using os.environ, but the code isn't very nice so it's more a workaround until someone has a better idea to fix this. Maybe it would also be sufficient to remove all of the code and just add a warning for the user to set the path variable himself

ArchipelProject/Archipel,ArchipelProject/Archipel,rmoorman/Archipel,ruthger/Archipel,ArchipelProject/Archipel,fr34k8/Archipel,ArchipelProject/Archipel,fr34k8/Archipel,fr34k8/Archipel,fr34k8/Archipel,rmoorman/Archipel,CyrilPeponnet/Archipel,CyrilPeponnet/Archipel,fr34k8/Archipel,ruthger/Archipel,rmoorman/Archipel,ruthger/Archipel,rmoorman/Archipel,rmoorman/Archipel,CyrilPeponnet/Archipel,CyrilPeponnet/Archipel,ruthger/Archipel,ruthger/Archipel,ArchipelProject/Archipel,CyrilPeponnet/Archipel