Limnoria/scripts/newplugin.py
2003-03-12 06:26:59 +00:00

12 lines
215 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
import shutil
if len(sys.argv) < 2:
print 'Usage: %s <plugin name>' % sys.argv[0]
sys.exit(-1)
shutil.copy('plugins/template.py', 'plugins/%s.py' % sys.argv[1])