Il giorno 16/feb/2013, alle ore 18:43, Ben Bob <[email protected]> ha scritto:
> Hi, Everyone,
>
> I have both python 2 and python 3 versions of some modules. They are imported
> as
>
> if sys.version_info.major == 2:
> import mymodule_py2 as mymodule
> else:
> import mymodule_py3 as mymodule
>
> so the python 3 modules are not used for python 2.x installation. However,
> when I run this command through pyinstaller, I get
>
> Traceback (most recent call last):
> File "/PATH/TO/pyinstaller/PyInstaller/depend/owner.py", line 110, in getmod
> co = compile(stuff.replace("\r\n", "\n"), py[0], 'exec')
> File "mymodule_py3.py", line 356
> def fEqual(*args, **kwargs) -> "bool" :
>
> Is there anyway to ignore these files? I tried to add
>
> excludes=['mymodule_py3'],
This is the correct way of doing. If it doesn't work, it's because of something
that is not visible from you cut-down example.
--
Giovanni Bajo :: [email protected]
Develer S.r.l. :: http://www.develer.com
My Blog: http://giovanni.bajo.it
smime.p7s
Description: S/MIME cryptographic signature
