[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help: “current directory” function
From: |
Heinrich Schuchardt |
Subject: |
Re: Help: “current directory” function |
Date: |
Thu, 3 Dec 2020 16:12:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 12/3/20 2:48 PM, Manuel Castro wrote:
> Hi glpk wizards,
>
> I wonder if there a kind of function or workaround that returns the
> directory path of where the ‘.mod’ file is??
>
> Basically in the folder where the ‘.mod’ file is, I have created another
> folder called “data” where I have all my input and output CSV data
> files. I can insert this directory path as a string in the GLPK reading
> CSV file statement. But of course if I change the directory of the
> project then, I have to go to the ‘.mod’ file and rewrite the directory
> path which is very inconvenient.
Just use relative paths (e.g. "data/foo.data"). These will be evaluated
relative to your current working directory.
Bet regards
Heinrich
>
> So, is there a function/workaround that can return the directory path of
> the ‘mod’ file?
>
> Many thanks for your help.
>
> Kind regards,
> Manuel.
>
>