Re: Regarding gdbus-codegen

2013-07-18 Thread Tarnyko
John, John Emmas writes: At the time I tried versions 2.7 and 3.1 but they both gave me the same problem. Going back to Tarnyko's email On 17/07/2013 19:55, Tarnyko wrote: - in gdbus-codegen, we have : path=$PATH:/lib/gdbus-2.0 from codegen import codegen_main That's a bit

Regarding gdbus-codegen (was: Re: glib-mkenums in glib 2)

2013-07-17 Thread Fan Chun-wei
Hi John, (list people: I understand this is a rather old topic that was brought up few months ago:) ). I was poking around with the Python scripts for gdbus-codegen lately, and I thought it might be good to let you know a few things about its use on Windows, especially under Visual Studio builds

Re: Regarding gdbus-codegen (was: Re: glib-mkenums in glib 2)

2013-07-17 Thread Tarnyko
Hi Fan, Thanks for sharing. FYI, MinGW makefiles from latest master generate and install gdbus-codegen correctly. You may want to take inspiration from them if you plan to add gdbus-codegen generation for MSVC (don't know this toolchain enough to do it myself). I just suggested a little

Re: Regarding gdbus-codegen

2013-07-17 Thread John Emmas
Thanks guys. My memory is hazy now but from what I can recall, any lines like this were always problematic;- from . import some_module No matter what I did, I couldn't get (Windows) Python to understand what from . meant. If the module to be imported was in a subfolder - e.g.

Re: Regarding gdbus-codegen

2013-07-17 Thread Tarnyko
Hmmm, that's strange, works here. - in gdbus-codegen, we have : path=$PATH:/lib/gdbus-2.0 from codegen import codegen_main - and in /lib/gdbus-2.0/codegen/codegen_main.py we have : from . import config where config.py is in the same directory. Using Windows (not MSYS) Python 2.5, and

Re: Regarding gdbus-codegen

2013-07-17 Thread Fan Chun-wei
Hi John, [Tarnyko wrote: ] Hmmm, that's strange, works here. - in gdbus-codegen, we have : path=$PATH:/lib/gdbus-2.0 from codegen import codegen_main - and in /lib/gdbus-2.0/codegen/codegen_main.py we have : from . import config where config.py is in the same directory. Using Windows (not MSYS)

Re: Regarding gdbus-codegen

2013-07-17 Thread John Emmas
On 18/07/2013 02:04, Fan Chun-wei wrote: I also ran Python 2.7 in both x86 and x64 flavors in the same way Tarnyko ran the script (which I built myself using Visual Studio, so this is a native Windows build/version of Python, running under cmd.exe), and this worked for me too. Thanks