rename the console python

52

rename the console python -

# if you are on windows:
import os
os.system("title " + "YourNewTitle")

#else:
import ctypes

kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
kernel32.SetConsoleTitleW(u"YourNewTitle")

Comments

Submit
0 Comments