I'm trying to write a script in D for building D projects.
They are dbuilder who do this . you can fork it
https://github.com/dbuilder-developers/dbuilder
On Fri, 08 Feb 2013 04:17:02 -0500, Peter Sommerfeld nore...@rubrica.at
wrote:
Steven Schveighoffer schrieb:
Windows is actually EXACTLY the same, except you don't use getenv and
putenv, you use SetEnvironmentVariable and GetEnvironmentVariable. You
can use the former if you want to use
Hi Peter.
This works for me on Win7 with DMD2.061
http://dpaste.dzfl.pl/64529e76
in this example here you are mixing (] parentheses :O Don't think this
is your real code, is it :O
| |
V V
environment(PATH] = pathSeparator ~ path ~ pathToMyDir ;
//
notna wrote:
This works for me on Win7 with DMD2.061
http://dpaste.dzfl.pl/64529e76
Yes that works, but that was not quite the question.
The point is you cannot *set* the path variable.
But meanwhile I think it isn't a good idea anyway.
The PATH belongs to the user/system, not to
On 02/07/2013 02:58 PM, Peter Sommerfeld wrote:
The point is you cannot *set* the path variable.
But meanwhile I think it isn't a good idea anyway.
The PATH belongs to the user/system, not to programs.
Otherwise that may introduce some harm...
The environment is private to the running
On Thu, 07 Feb 2013 20:45:49 -0500, Ali Çehreli acehr...@yahoo.com wrote:
On 02/07/2013 04:37 PM, Peter Sommerfeld wrote:
Ali Çehreli wrote:
On 02/07/2013 02:58 PM, Peter Sommerfeld wrote:
The point is you cannot *set* the path variable.
But meanwhile I think it isn't a good idea
On Sunday, 3 February 2013 at 19:05:01 UTC, Peter Sommerfeld
wrote:
Do you know a way to set it via system/shell calls, notably
under windows?
Peter
You might want to use Tango:
module env;
// 2013-01-08
// dmd2.061 + Siegelord Tango-D2-d2port
import tango.sys.Environment;
import
HeiHon heiko.honr...@web.de schrieb:
On Sunday, 3 February 2013 at 19:05:01 UTC, Peter Sommerfeld wrote:
Do you know a way to set it via system/shell calls, notably under
windows?
Peter
You might want to use Tango:
module env;
// 2013-01-08
// dmd2.061 + Siegelord Tango-D2-d2port
Hmmm, AFAIK it is outdated, isn't it ? I also hesitate to
introduce
major dependencies for this small point.
It was originally for D1, but SiegeLord ported almost all of it
to D2.
Can you point me to the sources of this Tango version please.
May be I can reuse a small part of it.
Am 06.02.2013, 14:51 Uhr, schrieb HeiHon heiko.honr...@web.de:
https://github.com/SiegeLord/Tango-D2
There are still some very useful things in Tango that you don't find in
Phobos (e.g. logging) and it plays nicely together with Phobos.
Thanks, interesting read. Will have a deeper look in
On 02/02/2013 03:41 AM, Gor Gyolchanyan wrote:
How can I set my local envoronment variables so that further calls to
std.process.system can pick it up?
std.process has the nice AA-like 'environment':
import std.process;
void main()
{
environment[MY_ENV_VAR] = 42;
system(echo
Good day,
I'm trying to write a script in D for building D projects. I want
to set the environment variable LIB for optlink to be able to
pick up library files from where I put them after compiling
dependencies.
The problem is, that the std.process.setenv is only available
under Linux and
On 02.02.2013 12:41, Gor Gyolchanyan wrote:
Good day,
I'm trying to write a script in D for building D projects. I want to set
the environment variable LIB for optlink to be able to pick up library
files from where I put them after compiling dependencies.
The problem is, that the
13 matches
Mail list logo