znc-buildmod: output where the module was written to

This commit is contained in:
Alexey Sokolov
2020-12-25 16:05:04 +00:00
parent 5c4b913212
commit 25a88004d5

View File

@@ -89,6 +89,7 @@ with tempfile.TemporaryDirectory() as cmdir:
subprocess.check_call(['cmake', '--build', '.'], cwd=build)
for so in glob.iglob(os.path.join(build, '*.so')):
print('Writing {}'.format(os.path.join(os.getcwd(), os.path.basename(so))))
try:
os.remove(os.path.basename(so))
except OSError: