mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
23 lines
693 B
Python
23 lines
693 B
Python
#!/usr/bin/env python
|
|
import sys
|
|
|
|
LICENSE = '''
|
|
//%LICENSE////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 2015 Devchandra M. Leishangthem (dlmeetei at gmail dot com)
|
|
//
|
|
// Distributed under the MIT License (See accompanying file LICENSE)
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
//%///////////////////////////////////////////////////////////////////////////
|
|
'''
|
|
|
|
if len(sys.argv) < 2:
|
|
sys.stderr.write('usage: ' + sys.argv[0] + ' file\n' )
|
|
sys.exit(1)
|
|
#if len
|
|
|
|
with file(sys.argv[1], 'r') as original: data = original.read()
|
|
with file(sys.argv[1], 'w') as modified: modified.write(LICENSE + '\n' + data)
|