command_line[1], path to the program file, and Linux

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

Hi,

I need my program to know its own directory -- this seems to me the easiest way
to let it find its ini file, and to define the default directory to which it
writes.

According to the Euphoria documentation, command_line[1] and command_line[2]
both have the complete path to the executable file, and I can easily extract the
path to the directory from there.

It works fine with Windows, but not with Linux -- at least not with Knoppix,
which is the only one I have. Here, command_line[1] and [2] do not contain the
path, but only what I have typed to call the program.

Is this a bug, am I doing something wrong, does this depend on the distribution,
or does it simply not work with Linux/Unix? And if so, is there a workaround?

Thank you!
Robert

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

Search



Quick Links

User menu

Not signed in.

Misc Menu