Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Markus Schaber
Hi, Either you create a c# wrapper dll that exposes this function, and reference that DLL from Ironpython. Or you use the clrtype class (which can be found at http://ironpython.codeplex.com/wikipage?title=Samples) - this allows you to assign c# Attributes to python methods, so you can define

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Steve Dower
You should be able to use ctypes for this. For example, the following works fine from CPython (I don't have IronPython handy on this computer): from ctypes import windll windll.kernel32.CreateSymbolicLinkA(c:\\py.exe, c:\\python27\\python.exe, 0) The only difference may be calling

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Lukáš Duběda
Interesting! Thank you, I'll try that. Also thanks Markus Schaber, another thing to look at. :) Cheers, Lukáš Duběda Director [T] +420 602 444 164 duber studio(tm) [M] i...@duber.cz [W] http://www.duber.cz [A] R.A.Dvorského 601, Praha 10 [A] 10900, Czech Republic, Europe On 1.4.2011 8:58,

Re: [IronPython] [Code Review] Custom PAL fixes

2011-04-01 Thread Doug Blank
On Thu, Mar 31, 2011 at 9:05 PM, Jimmy Schementi ji...@schementi.com wrote: By the way, is it about time to split this list into a development and users list, or you all don't mind seeing these type of mails? Many of the people subscribed want to get any insight into the DLR languages as they

[IronPython] IronPython use case: CoDeSys

2011-04-01 Thread Markus Schaber
Hi, For all those collecting information about usages of IronPython: The Controller Development System CoDeSys is the industry leading development tool (IDE and runtime system) for programming PLCs using the standardized IEC 61131-3 language. The current release V3.4 SP3 includes an

[IronPython] Migration warnings to python 3

2011-04-01 Thread Markus Schaber
Hello, The current estimate for IronPython to implement python 3 was not before fall. So applications hosting IronPython must think about paving a good migration path for their users. AFAIR, the cPython implementation can spit out a bunch of warnings for Code incompatible with cPython

Re: [IronPython] numpy / IronClad?

2011-04-01 Thread Jason McCampbell
Hi Felix, That's a good question, but unfortunately I don't know the answer. I haven't used IronPython in the interactive mode under VS2010, just running from a command prompt. Jason On Mon, Mar 28, 2011 at 3:50 PM, Felice80 fzumst...@gmail.com wrote: Hi Jason, thanks for getting back to

Re: [IronPython] [Code Review] Custom PAL fixes

2011-04-01 Thread Jeff Hardy
On Thu, Mar 31, 2011 at 7:05 PM, Jimmy Schementi ji...@schementi.com wrote: Just checked in some small fixes to make the Importer use a custom Platform Adaptation Layer. I also started to tweak clr.CompileModules a bit, but backed those changes out, so just ignore those. Take a look at the

Re: [IronPython] [Code Review] Custom PAL fixes

2011-04-01 Thread Markus Schaber
Hi, Jimmy, Von: Jeff Hardy On Thu, Mar 31, 2011 at 7:05 PM, Jimmy Schementi ji...@schementi.com wrote: Just checked in some small fixes to make the Importer use a custom Platform Adaptation Layer. I also started to tweak clr.CompileModules a bit, but backed those changes out, so just

Re: [IronPython] Migration warnings to python 3

2011-04-01 Thread Dino Viehland
We do support the -3 option which turns those warnings on but I don't think we have as many warnings as CPython did. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Markus Schaber Sent: Friday, April 01, 2011 7:25 AM To: Discussion of IronPython

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Vernon Cole
Just to make sure we are all on the same page here, the original post said: I've been trying to find a solution for creating Symbolic Links via IronPython scripting, [...snip...] [Interop.DllImport(kernel32.dll, EntryPoint=CreateSymbolicLinkW, CharSet=Interop.CharSet.Unicode)] public static

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Brian Curtin
On Fri, Apr 1, 2011 at 20:32, Vernon Cole vernondc...@gmail.com wrote: Just to make sure we are all on the same page here, the original post said: I've been trying to find a solution for creating Symbolic Links via IronPython scripting, [...snip...] [Interop.DllImport(kernel32.dll,