Include File Relative Paths
- Posted by c.k.lester <euphoric at cklester.com> Mar 06, 2007
- 558 views
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.