March 27, 2018 importPaths option in dub | ||||
---|---|---|---|---|
| ||||
Hello! I work using Linux. Is it possible to use environment variables like $HOME in option importPaths of Dub project file? I tried it but dub concatenates the path and current path so I get something like this /develop/project/$HOME/.dub/packages/gtk-d/generated/gtkd or /develop/project/~/.dub/packages/gtk-d/generated/gtkd. I can use $HOME in lflags-posix so it work perfectly. Dub 1.8.0 DMD 2.079 Thanks in advance! |
March 27, 2018 Re: importPaths option in dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On Tuesday, 27 March 2018 at 06:34:29 UTC, ANtlord wrote:
> Hello! I work using Linux.
>
> Is it possible to use environment variables like $HOME in option importPaths of Dub project file? I tried it but dub concatenates the path and current path so I get something like this /develop/project/$HOME/.dub/packages/gtk-d/generated/gtkd or /develop/project/~/.dub/packages/gtk-d/generated/gtkd. I can use $HOME in lflags-posix so it work perfectly.
>
> Dub 1.8.0
> DMD 2.079
>
> Thanks in advance!
I don't think so, but someone could correct me. I just remember having tried with something similar in the past, but it was sourcePath I think?
|
Copyright © 1999-2021 by the D Language Foundation