blockext / blockext

Make Scratch (and Snap!) extensions using Python.
http://blockext.github.io
20 stars 15 forks source link

Extension filenames should be unique #2

Closed hyperobject closed 10 years ago

hyperobject commented 10 years ago

i.e. mindstorms_scratch.s2e, leap_snap.xml rather than generic names

tjvr commented 10 years ago

Yeah, they probably should. I only didn't do this because it's slightly tricky to implement nicely.

hyperobject commented 10 years ago

What if we just take out any spaces from the name in blockext.run and append _scratch or _snap? So then we'd have fancy_spaceship_scratch.s2e and fancy_spaceship_snap.xml

tjvr commented 10 years ago

Generating the name isn't difficult; the difficult part is having handlers whose name isn't constant.

I want to be able to do something like this:

@handler("<filename>_scratch.s2e")
hyperobject commented 10 years ago

Sorry, why is that a problem?

tjvr commented 10 years ago

It's not, really. I just have to implement it. :P

hyperobject commented 10 years ago

:P