On Feb 12, 2008 11:06 PM, Thomas Heller <[EMAIL PROTECTED]> wrote:
> Here is a fix for this problem:
>
> Index: comtypes/client/_generate.py
> ===================================================================
> --- comtypes/client/_generate.py        (revision 59545)
> +++ comtypes/client/_generate.py        (working copy)
> @@ -11,6 +11,10 @@
>
>  def _my_import(fullname):
>      # helper function to import dotted modules
> +    import comtypes.gen
> +    if comtypes.client.gen_dir \
> +           and comtypes.client.gen_dir not in comtypes.gen.__path__:
> +        comtypes.gen.__path__.append(comtypes.client.gen_dir)
>      return __import__(fullname, globals(), locals(), ['DUMMY'])
>
>  def _name_module(tlib):

Thanks. If I understand right the code, I will not have to modify
sys.path . Am I right?

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to