be sure to install pyperclip You can do that by typing "pip install pyperclip" in your command line to install the pyperclip package for python
14 lines
230 B
Python
14 lines
230 B
Python
import pyperclip
|
|
|
|
x = ""
|
|
|
|
with open("MobDimSpawningRules.txt", "r") as file:
|
|
x+=file.read()
|
|
|
|
y=""
|
|
for i in x.split('\n'):
|
|
y += str(i.split(",").__str__())+",\n"
|
|
|
|
print(y)
|
|
print("data copied to clipboard")
|
|
pyperclip.copy(y) |