Thanks Dino.

Yes the Application does work but all the paths point to the
PythonConsoleHost folder name and version so are not much use.

The version and app name seem to be set in AssemblyInfo file in a VS
project. Is this achievable with IronPython?

Thanks,
Davy

On 8/2/07, Dino Viehland <[EMAIL PROTECTED]> wrote:
> This works for me:
>
> >>> import System
> >>> import clr
> >>> clr.AddReference('System.Windows.Forms')
> >>> from System.Windows.Forms import Application
> >>> dir(Application)
> ['AddMessageFilter', 'AllowQuit', 'ApplicationExit', 'CommonAppDataPath', 
> 'CommonAppDataRegistry', 'CompanyName', 'CurrentCulture', 
> 'CurrentInputLanguage',
>  'DoEvents', 'EnableVisualStyles', 'EnterThreadModal', 'Equals', 
> 'ExecutablePath', 'Exit', 'ExitThread', 'FilterMessage', 'Finalize', 
> 'GetHashCode', 'GetTy
> pe', 'Idle', 'LeaveThreadModal', 'LocalUserAppDataPath', 'MakeDynamicType', 
> 'MemberwiseClone', 'MessageLoop', 'MessageLoopCallback', 'OleRequired', 
> 'OnThre
> adException', 'OpenForms', 'ProductName', 'ProductVersion', 'RaiseIdle', 
> 'Reduce', 'ReferenceEquals', 'RegisterMessageLoop', 'RemoveMessageFilter', 
> 'Render
> WithVisualStyles', 'Restart', 'Run', 'SafeTopLevelCaptionFormat', 
> 'SetCompatibleTextRenderingDefault', 'SetSuspendState', 
> 'SetUnhandledExceptionMode', 'Sta
> rtupPath', 'ThreadException', 'ThreadExit', 'ToString', 
> 'UnregisterMessageLoop', 'UseWaitCursor', 'UserAppDataPath', 
> 'UserAppDataRegistry', 'VisualStyleSta
> te', '__class__', '__doc__', '__init__', '__module__', '__new__', 
> '__reduce__', '__reduce_ex__', '__repr__', 'add_ApplicationExit', 
> 'add_EnterThreadModal',
>  'add_Idle', 'add_LeaveThreadModal', 'add_ThreadException', 'add_ThreadExit', 
> 'remove_ApplicationExit', 'remove_EnterThreadModal', 'remove_Idle', 'remove_L
> eaveThreadModal', 'remove_ThreadException', 'remove_ThreadExit']
> >>> Application.CommonAppDataPath
> 'C:\\ProgramData\\Microsoft\\IronPython\\1.1'
> >>>
>
>
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davy Mitchell
> Sent: Wednesday, August 01, 2007 3:34 PM
> To: Discussion of IronPython
> Subject: [IronPython] Application?
>
> Is there a way to use the Application namespace in IronPython?
>
> Hoping to use methods like Application.CommonAppDataPath but they all
> seem assembly focussed?
>
> Thanks,
> Davy
>
> --
> Davy Mitchell
> Blog - http://www.latedecember.co.uk/sites/personal/davy/
> Twitter - http://twitter.com/daftspaniel
> Skype - daftspaniel
> needgod.com
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>


-- 
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel
needgod.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to