Nathan McCorkle
2014-05-28 23:15:23 UTC
The list of .GIF files fails when run from a directory other than the demo
directory because the relative path isn't coded very well. Here is my fix:
import os
GIFNames = [
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00178_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'BD13656_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00185_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00039_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00183_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00028_.gif'),
]
directory because the relative path isn't coded very well. Here is my fix:
import os
GIFNames = [
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00178_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'BD13656_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00185_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00039_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00183_.gif'),
os.path.join(os.path.dirname(__file__), 'bitmaps', 'AG00028_.gif'),
]
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.