mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-03 16:39:25 +01:00
scripts/supybot-plugin-create: Fix #721 .
* README template is now cut to two lines for easier reading in non-word wrapping text editors on normal terminal size. * README is now saved as `README.md` instead of `README.txt`.
This commit is contained in:
parent
fa06f2af34
commit
94feaa5faf
@ -204,7 +204,8 @@ class %sTestCase(PluginTestCase):
|
|||||||
'''.lstrip()
|
'''.lstrip()
|
||||||
|
|
||||||
readmeTemplate = '''
|
readmeTemplate = '''
|
||||||
Insert a description of your plugin here, with any notes, etc. about using it.
|
Insert a description of your plugin here, with any notes, etc. about
|
||||||
|
using it.
|
||||||
'''.lstrip()
|
'''.lstrip()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -288,7 +289,7 @@ def main():
|
|||||||
name))
|
name))
|
||||||
writeFile('__init__.py', __init__Template % (copyright, name))
|
writeFile('__init__.py', __init__Template % (copyright, name))
|
||||||
writeFile('test.py', testTemplate % (copyright, name, name))
|
writeFile('test.py', testTemplate % (copyright, name, name))
|
||||||
writeFile('README.txt', readmeTemplate)
|
writeFile('README.md', readmeTemplate)
|
||||||
|
|
||||||
pathname = os.path.join(pathname, 'local')
|
pathname = os.path.join(pathname, 'local')
|
||||||
os.mkdir(pathname)
|
os.mkdir(pathname)
|
||||||
|
Loading…
Reference in New Issue
Block a user