Hi,

2012/8/23 JohnPW <[email protected]>

> OK,
> I think I figured it out. I hope I haven't broken anything.
>
> I changed this:
> [There was a bunch of very similar stuff above this . . . ]
> ##
> # Your previous /Users/jpwmacbookpro/.profile file was backed up as
> /Users/jpwmacbookpro/.profile.macports-saved_2012-08-12_at_18:57:16
> ##
>
> # MacPorts Installer addition on 2012-08-12_at_18:57:16: adding an
> appropriate PATH variable for use with MacPorts.
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
> # Finished adapting your PATH environment variable for use with MacPorts.
>
> to this:
> [I left that very similar stuff above this . . . ]
> ##
> # Your previous /Users/jpwmacbookpro/.profile file was backed up as
> /Users/jpwmacbookpro/.profile.macports-saved_2012-08-12_at_18:57:16
> ##
>
> # MacPorts Installer addition on 2012-08-12_at_18:57:16: adding an
> appropriate PATH variable for use with MacPorts.
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH*
> :/Applications/hugin-mac-2012.0.0_beta1/HuginTools/*
> # Finished adapting your PATH environment variable for use with MacPorts.
>
>
> It seems to work. Is that correct?
>
>
>
Yes, that's correct. It could be slightly simpler but macports quite
forcefully adds it's path before the rest. That's not a problem at all,
just a remark (every mac with macports has that).
This change you now made is (semi)permanent and on every reboot it will be
reactivated for every terminal. If that's what you want then that's
perfectly OK. If you change your path, e.g. your installation, you need to
change you profile as well.
A "volatile" method would be to enter in a terminal the following command
(which you can also put in the top of your automated script) before you
execute the binaries or scripts..
export PATH=$PATH:/Applications/hugin-mac-2012.0.0_beta1/HuginTools/

This means that in that terminal session the hugintools path will be added
to the normal PATH. If you call it from your script it will only be active
in your script.
If you close the terminal session the variable will no longer be active and
a new terminal will only contain the original PATH. In a parallel terminal
it won't be active either.

Harry

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to