[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Subversion Installer for Windows ready for download

From: Frohwalt Egerer <mail_at_frohwalt.de>
Date: 2002-07-01 20:22:30 CEST

> -----Original Message-----
> From: Branko Cibej [mailto:brane@xbc.nu]
> Don't. Use argv[0] instead, so that the same code can be used on Unix.
> In general, we frown upon Windows-specific code in Subversion, except
> where absolutely necessary.

argv[0] does not list the full path where the executable resides in, it just
reflects what you typed into the shell. (So if "svn.exe" is on the path
and I invoke svn without specifying a directory in the shell, argv[0] will
just be "svn")

You cannout find out the path where the binaries are without platform specific
code. To find the path on Unix you cannot get around a PATH search, on Windows
you have GetModuleDirectory.

Cheers,
  Froh

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 1 20:27:33 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.