scripts/supybot-botchk: Open pidfile in append mode because 'x' is not supported on Python 2

This commit is contained in:
nyuszika7h 2013-02-07 15:37:20 +01:00
parent 15796454cf
commit c234d683d1

View File

@ -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: