Issue 219: Pb with os.path.join(current_dir, 'particle.png') under Win XP
Status:  Invalid
Owner: ----
Closed:  Jul 2010
Reported by awa...@gmail.com, Feb 22, 2010
What steps will reproduce the problem?
1. Install pymt 0.4 with the installer
2. Launch ex 3D drawing
3.

What is the expected output? What do you see instead?
The 3D Drawing example code tells 
particle_fn = os.path.join(current_dir, 'particle.png')
But Python is looking for the file particle.png in the wrong directory


What version of the product are you using? On what operating system?
Py 2.6.2
Win XP

Please provide any additional information below.

Traceback (most recent call last):
  File "C:\Program Files\PyMT Examples\3Ddrawing\3Ddrawing.py", line 16, in
<module>
    set_brush(particle_fn, 10)
  File "C:\Python26\lib\site-packages\pymt\graphx\paint.py", line 39, in
set_brush
    point_sprite_img = pymt.Image.load(sprite)
  File "C:\Python26\lib\site-packages\pymt\core\image\__init__.py", line
187, in load
    return Image(filename, **kwargs)
  File "C:\Python26\lib\site-packages\pymt\core\image\__init__.py", line
152, in __init__
    self.filename   = arg
  File "C:\Python26\lib\site-packages\pymt\core\image\__init__.py", line
209, in _set_filename
    self._filename, keep_data=self._keep_data)
  File "C:\Python26\lib\site-packages\pymt\core\image\__init__.py", line
96, in load
    im = loader(filename, **kwargs)
  File "C:\Python26\lib\site-packages\pymt\core\image\__init__.py", line
43, in __init__
    self._data      = self.load(filename)
  File "C:\Python26\lib\site-packages\pymt\core\image\img_pygame.py", line
34, in load
    im = pygame.image.load(filename)
error: Couldn't open C:\Python26\Lib\idlelib\particle.png

Apr 7, 2010
Project Member #1 txprog
How can i reproduce the bug ?
Apr 7, 2010
#2 awa...@gmail.com
I don t see any way to reproduce the bug under linux. Under Windows my station was
freshly installed with Python 2.6 and Pymt0.4 + exemples from the installer. 
Maybe modify the 3Dviewer ex for it to look for the file locally inside the ex
directory instead?

Apr 7, 2010
Project Member #3 txprog
It's already the case, that's why i ask... :/
Jul 5, 2010
Project Member #4 txprog
If you continue to hit the bug, please reopen it with a way to redo it
Status: Invalid