mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +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.')
|
||||
|
||||
os.chdir(options.botdir)
|
||||
if not os.path.exists(options.pidfile):
|
||||
open(options.pidfile, 'x').close()
|
||||
open(options.pidfile, 'a').close()
|
||||
|
||||
pid = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user