supybot-botchk: Use open() and close() instead of os.system('touch')

This commit is contained in:
nyuszika7h 2013-02-03 14:15:46 +01:00
parent 1b6f1f04ec
commit 7edc73a08c

View File

@ -97,7 +97,8 @@ if __name__ == '__main__':
parser.error('No conffile given.')
os.chdir(options.botdir)
os.system('touch %s' % options.pidfile)
pidfile = open(options.pidfile, 'w')
pidfile.close()
pid = None
try: