Otonicara
Posts: 36
Joined: Sun Jul 13, 2008 3:40 pm
Location: Slovenija EU
Contact:

Postby Otonicara » Sun Jul 20, 2008 2:27 pm

Ok-ej over the weekend I have instolled Paython and went also through some tutorials. It looks really powerful any easy to learn programing tool..

Questions:
1.) Which command I need to use to be able to read entire ini file (the contents generated by the hook)?

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Sun Jul 20, 2008 4:45 pm

Otonicara wrote:Which command I need to use to be able to read entire ini file (the contents generated by the hook)?

This is not really the place to be asking general Python questions but you can use the read() method on a file handle. However, for INI files, you're better off using the win32api (contained in the WIN32 extensions I mentioned earlier). Look at the existing Python sample hook/plugins for examples.


Return to “Awasu - General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest