# Load search path?

**URL:** <https://discourse.ats-lang.org/t/load-search-path/745>\
**Category:** Google Group\
**Created:** [March 6, 2015, 7:16pm UTC](https://discourse.ats-lang.org/t/load-search-path/745 "2015-03-06T19:16:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shea\_Levy](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Shea\_Levy](https://discourse.ats-lang.org/u/Shea_Levy)\
**Post date:** [March 6, 2015, 7:16pm UTC](https://discourse.ats-lang.org/t/load-search-path/745/1 "2015-03-06T19:16:26Z")

</div>

Hi all,

What determines the search path for staload and dynload when calling patsopt?

Thanks,  
Shea

---

<div class="post-metadata">

**Author:** ![Yannick\_Duchene](https://avatars.discourse-cdn.com/v4/letter/y/b77776/32.png) [@Yannick\_Duchene](https://discourse.ats-lang.org/u/Yannick_Duchene)\
**Post date:** [May 11, 2015, 6:32pm UTC](https://discourse.ats-lang.org/t/load-search-path/745/2 "2015-05-11T18:32:22Z")

</div>

> the search path ranges over the following in the listed order:
> 
> the current directory of the filename being processed
> 
> the ones in PATHLST (added by the flag -IATS)
> 
> the ones in PREPATHLST (${PATSHOME} is the only one as of now)

Is PATHLST an internal variable? I tried to define and export it as  
environment variable, with no effect. Seems only the -IATS command line  
option has an effect. Still about this option, I noticed it does not appear  
in the help displayed by `patsopt --help`.

---

<div class="post-metadata">

**Author:** ![Shea\_Levy](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Shea\_Levy](https://discourse.ats-lang.org/u/Shea_Levy)\
**Post date:** [March 7, 2015, 4:37am UTC](https://discourse.ats-lang.org/t/load-search-path/745/3 "2015-03-07T04:37:29Z")

</div>

Ah ha, thanks! I just tried -I :)\> On Mar 6, 2015, at 2:36 PM, gmhwxi [gmh...@gmail.com](mailto:gmh...@gmail.com) wrote:

> the search path ranges over the following in the listed order:
> 
> the current directory of the filename being processed
> 
> the ones in PATHLST (added by the flag -IATS)
> 
> the ones in PREPATHLST (${PATSHOME} is the only one as of now)
> 
> On Friday, March 6, 2015 at 2:16:59 PM UTC-5, Shea Levy wrote:  
> Hi all,
> 
> What determines the search path for staload and dynload when calling patsopt?
> 
> Thanks,  
> Shea
> 
> –  
> You received this message because you are subscribed to the Google Groups “ats-lang-users” group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com) [mailto:ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com).  
> To post to this group, send email to [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com) [mailto:ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com).  
> Visit this group at [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users) [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/ats-lang-users/9ff306b0-83ad-4609-a596-558f8b247b5b%40googlegroups.com](https://groups.google.com/d/msgid/ats-lang-users/9ff306b0-83ad-4609-a596-558f8b247b5b%40googlegroups.com) [https://groups.google.com/d/msgid/ats-lang-users/9ff306b0-83ad-4609-a596-558f8b247b5b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/ats-lang-users/9ff306b0-83ad-4609-a596-558f8b247b5b%40googlegroups.com?utm_medium=email&utm_source=footer).

---

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [March 6, 2015, 7:36pm UTC](https://discourse.ats-lang.org/t/load-search-path/745/4 "2015-03-06T19:36:45Z")

</div>

the search path ranges over the following in the listed order:

the current directory of the filename being processed

the ones in PATHLST (added by the flag -IATS)

the ones in PREPATHLST (${PATSHOME} is the only one as of now)On Friday, March 6, 2015 at 2:16:59 PM UTC-5, Shea Levy wrote:

> Hi all,
> 
> What determines the search path for staload and dynload when calling  
> patsopt?
> 
> Thanks,  
> Shea

---

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [May 11, 2015, 9:27pm UTC](https://discourse.ats-lang.org/t/load-search-path/745/5 "2015-05-11T21:27:24Z")

</div>

As of now, PATHLST cannot be set using an environment variiable.

We could introduce ATSPATH and ATSPREPATH in the future. Let’s wait a bit.On Mon, May 11, 2015 at 2:32 PM, ‘Yannick Duchêne’ via ats-lang-users \< [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com)\> wrote:

> Le vendredi 6 mars 2015 20:36:45 UTC+1, gmhwxi a écrit :
> 
> > the search path ranges over the following in the listed order:
> > 
> > the current directory of the filename being processed
> > 
> > the ones in PATHLST (added by the flag -IATS)
> > 
> > the ones in PREPATHLST (${PATSHOME} is the only one as of now)
> 
> Is PATHLST an internal variable? I tried to define and export it as  
> environment variable, with no effect. Seems only the -IATS command line  
> option has an effect. Still about this option, I noticed it does not appear  
> in the help displayed by `patsopt --help`.
> 
> –  
> You received this message because you are subscribed to the Google Groups  
> “ats-lang-users” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com).  
> To post to this group, send email to [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com).  
> Visit this group at [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/ats-lang-users/44e62a8e-56cb-418c-8c12-7a573f6495ce%40googlegroups.com](https://groups.google.com/d/msgid/ats-lang-users/44e62a8e-56cb-418c-8c12-7a573f6495ce%40googlegroups.com)  
> [https://groups.google.com/d/msgid/ats-lang-users/44e62a8e-56cb-418c-8c12-7a573f6495ce%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/ats-lang-users/44e62a8e-56cb-418c-8c12-7a573f6495ce%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
