mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
scripts/supybot-botchk: Open pidfile in append mode because 'x' is not supported on Python 2
This commit is contained in:
parent
15796454cf
commit
c234d683d1
@ -97,8 +97,7 @@ if __name__ == '__main__':
|
|||||||
parser.error('No conffile given.')
|
parser.error('No conffile given.')
|
||||||
|
|
||||||
os.chdir(options.botdir)
|
os.chdir(options.botdir)
|
||||||
if not os.path.exists(options.pidfile):
|
open(options.pidfile, 'a').close()
|
||||||
open(options.pidfile, 'x').close()
|
|
||||||
|
|
||||||
pid = None
|
pid = None
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user