Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from PIL import Image as PImage

__version__ = 'mpa-0.3.0'
__version__ = 'lc-0.3.1'


PADDING_REGEXP = re.compile("^(\d+-?){,3}\d+$")
Expand Down Expand Up @@ -490,7 +490,7 @@ def class_name(self):
option. For a camelCase representation of the CSS class name use
``camelcase`` as separator.
"""
name = self.filename[:2]+self.filename[2:].replace('/', '-')
name = self.filename[:2]+self.filename[2:].replace('/', '-').replace('\\', '-')

# Remove padding information
if not self.sprite.manager.config.ignore_filename_paddings:
Expand Down Expand Up @@ -919,7 +919,7 @@ def _locate_images(self):
files=fileList

images = [Image(n, sprite=self) for n in files if \
not (n.startswith('.') and not n.startswith('./')) and \
not (n.startswith('.') and (not n.startswith('./') and not n.startswith('.\\'))) and \
extension_re.match(n)]

if not len(images):
Expand Down