Include File Relative Paths

new topic     » topic index » view thread      » older message » newer message

What do you suggest to combat this issue...?

I'm including a file that is in a subdirectory. I would like to keep the
relative file path references in the include file to accommodate updates, etc.

For example:

include system/myfile.e

myfile.e contains

   o = open_file("txt/afile.txt")

The file path system/txt/afile.txt is perfectly valid, but open_file() fails
to find it. This is because Euphoria doesn't look relative to where the
include file is located.

Is there a fix for this? or what is a reasonable workaround?

Thanks.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu