Why is current_dir() Not the Directory my Program is Run From?

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

I'm right-clicking my ".exw" file in Windows and choosing, "Run with Euphoria for Windows interpreter."

When I do that, current_dir() returns "c:\windows\system32," which isn't where euiw or my source is located.

I'm running into a problem with read_lines( "myfile.txt" ) because it's apparently looking in current_dir(), and "myfile.txt" isn't there.

I don't want to have to chdir(). I expect it to just find it in the source-containing folder.

What should I do here?

FOLLOW-UP: The translated file does NOT exhibit this behavior. Apparently, its current_dir() is the directory in which the executable is run.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu