>
>
>    Daniel Hyams <[email protected]> May 09 09:30AM -0400
>
>    ...I think the correct way to handle this is to provide the full path
>    to
>    ctypes.CDLL(). In the case of being frozen, this just means to query
>    sys.argv[0] to get the path to where the executable is, so long as the
>    .so
>    is packaged in that same dir.
>
> This is what I've got in the manual, do you think
sys.argv[0] is more correct?

    if getattr(sys, 'frozen', False):
        # we are running in a PyInstaller bundle
        basedir = sys._MEIPASS
    else:
        # we are running in a normal Python environment
        basedir = os.path.dirname(__file__)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to