mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 13:12:45 +01:00
supybot-botchk: Use open() and close() instead of os.system('touch')
This commit is contained in:
parent
1b6f1f04ec
commit
7edc73a08c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user