From e414e48a0575a64642057f81a6113418b6ab5839 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Mon, 16 Sep 2019 18:37:44 +0200 Subject: [PATCH] removing pcompiler stuff (copy.py) --- copy.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 copy.py diff --git a/copy.py b/copy.py deleted file mode 100644 index 4f8db62..0000000 --- a/copy.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python3 - -import base64 - -def copy(string): - import subprocess - subprocess.run(["xclip", "-selection", "c"], input=string, encoding='utf8') - -with open("main.js", 'r') as fp: - script = fp.read() - -with open("main.xslt", "r") as fp: - xslt = fp.read() - -with open("hamburger.png", "rb") as fp: - img = fp.read() - -with open("main.css", "r") as fp: - css = fp.read() - -script = script.replace("XSLFILE", "`{}`".format(xslt)) -script = script.replace("CSS", "`{}`".format(css)) -script = script.replace("HAMBURGER", base64.b64encode(img).decode('ascii')) -copy(script)