mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-24 06:17:44 +03:00
9 lines
271 B
Python
9 lines
271 B
Python
import subprocess
|
|
import os
|
|
|
|
def write(text):
|
|
# set path
|
|
env = os.environ.copy()
|
|
env["PATH"] = env["PATH"] + ":/app/bin"
|
|
process = subprocess.Popen(["/bin/sh", "-c", "wl-copy"], stdin=subprocess.PIPE, env=env)
|
|
process.communicate(text.encode('utf-8')) |