tweecode / twine

UI for creating hypertext stories
http://twinery.org
656 stars 97 forks source link

Changed the naming of custom Header class files #175

Closed tmedwards closed 9 years ago

tmedwards commented 9 years ago

Changed the naming of custom Header class files from %header%/%header%.py to %header%/header.py in order to fix the issue where if a user renames the story format's directory, the custom Header file will no longer be found (since it currently is based on the name of the directory, rather than having a constant name).

webbedspace commented 9 years ago

Shouldn't this rename all of the built-in formats' header class files, too?

tmedwards commented 9 years ago

It should, yes. I was under the impression they didn't specify custom Header class files, but I see now that I was mistaken. I'll go ahead and get those renamed and update the PR.

tmedwards commented 9 years ago

Done.

webbedspace commented 9 years ago

Thinking about it more... I know there's probably not that many other "third-party" formats out there, but I think we might as well keep the extant ones working, by attempting to open %header%/%header%.py as a fallback if header.py is not present.

tmedwards commented 9 years ago

Sensible, and done.