From eec15024656211ec189b31c38e434c55a83b15e8 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 2 Aug 2021 19:28:26 +0200 Subject: [PATCH] Adding debug to setup.py --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 53a8034..610710e 100644 --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ if sys.platform == 'linux': data_files.append((os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/', ['linux/application-x-logarithm-plot.svg'])) data_files.append((os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/', ['logplotter.svg'])) if len(sys.argv) > 1: + print(sys.argv[1]) if sys.argv[1] == "install": from shutil import copyfile os.makedirs(os.environ["PREFIX"] + '/applications/', exist_ok=True) @@ -86,6 +87,7 @@ if sys.platform == 'linux': copyfile(current_dir + '/linux/application-x-logarithm-plot.svg', os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg') copyfile(current_dir + '/logplotter.svg', os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') + print("Wrote icon to ", os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') if "FLATPAK_INSTALL" in os.environ: os.makedirs(os.environ["PREFIX"] + '/metainfo/', exist_ok=True) copyfile(current_dir + '/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml',