[Discuss OpenCPI] Re: Specifying relative path for included files

From: Dominic Walters <waltersdom_at_googlemail.com>
Date: Tue, 16 May 23 22:38:38 +0100

Worth noting, I believe environment variables are not supported in XML, so
you'd need to go via Makefile if you wanted to use $OCPI_ROOT_DIR.
I'd recommend staying in XML and using `../`, then to access other projects
I'd go via the `imports` directory in your project.
That way the relative project locations can change and the relative path
will still be correct.

On Tue, May 16, 2023 at 3:59 PM Aaron Olivarez <aaron_at_olivarez.info> wrote:

> If your project is not located inside the installed directory you can
> navigate from the OCPI_ROOT_DIR to your project using the
> symlinks in `projects-registry`. Assuming your OpenCPI project is
> registered using `ocpidev register project` from your project directory.
>
> Aaron
>
>
>
> On Tue, May 16, 2023 at 9:48 AM Ian Chodera <iac_at_md1tech.co.uk> wrote:
>
>> Hi Aaron
>>
>> OCPI_ROOT_DIR seems to be where OCPI was installed - not where our
>> project folders are - for reference Dan and I are working on a shared
>> machine, with separate project directories
>>
>>
>> Ian Chodera
>> MD1 Technology Ltd.
>>
>> e: iac_at_md1tech.co.uk
>> w: www.md1tech.co.uk
>>
>>
>> [image: 9001-RGB-Logo-136x136.jpg]
>>
>>
>>
>> MD1TechnologyLtd. is registered in England & Wales with company number
>> 09378746.
>> Registered address: Cheltenham Film & Photographic Studios, Hatherley
>> Lane, Cheltenham, Gloucestershire, England. GL51 6PN.
>> VAT registration number: GB 206 3877 05
>>
>> On 16 May 2023, at 15:38, Aaron Olivarez <aaron_at_olivarez.info> wrote:
>>
>> Glad you got it working.
>>
>> For future reference there is an environment variable you could use as a
>> reference point. It's called OCPI_ROOT_DIR , from there you can
>> access projects directory.
>>
>> Aaron
>>
>> On Tue, May 16, 2023 at 9:14 AM <dwp_at_md1tech.co.uk> wrote:
>>
>>> Must have made a typo somewhere as using a relative path with ../ now
>>> appears to be working
>>> _______________________________________________
>>> discuss mailing list -- discuss_at_lists.opencpi.org
>>> To unsubscribe send an email to discuss-leave_at_lists.opencpi.org
>>>
>> _______________________________________________
>> discuss mailing list -- discuss_at_lists.opencpi.org
>> To unsubscribe send an email to discuss-leave_at_lists.opencpi.org
>>
>>
>> _______________________________________________
> discuss mailing list -- discuss_at_lists.opencpi.org
> To unsubscribe send an email to discuss-leave_at_lists.opencpi.org
>






9001-RGB-Logo-136x136.jpg
(image/jpeg attachment: 9001-RGB-Logo-136x136.jpg)

Received on Tue May 16 2023 - 21:38:38 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT