[IronPython] Solved: Re: PythonEngine bug
Martin Maly
Martin.Maly at microsoft.com
Tue Dec 6 16:22:52 CET 2005
Actually, Environment.CurrentDirectory does return current directory, not the directory of the running assembly:
C:\Ip>ip
IronPython 0.9.5 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import System
>>> System.Environment.CurrentDirectory
'C:\\Ip'
>>> System.Environment.CommandLine
'C:\\Ip\\IronPython\\Src\\Bin\\IronPythonConsole.exe'
Martin
> -----Original Message-----
> From: users-bounces at lists.ironpython.com
> [mailto:users-bounces at lists.ironpython.com] On Behalf Of
> Stanislas Pinte
> Sent: Friday, December 02, 2005 6:18 AM
> To: Discussion of IronPython
> Subject: [IronPython] Solved: Re: PythonEngine bug
>
> Hello,
>
> my apologies for the false warning:
>
> actually,
>
> engine.AddToPath(Environment.CurrentDirectory);
>
> will add the directory of the assembly we are running, not
> the current directory.
>
> I don't know if it is the expected behavior or not.
>
> Thanks,
>
> Stan.
More information about the Ironpython-users
mailing list