From 1825b09a36fac12febc2de8228d15a3e7384a521 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Wed, 22 Jul 2015 10:20:43 -0600 Subject: [PATCH] Fixed empty image path causing error message. --- command_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command_line.py b/command_line.py index c0106a3..9f3ae36 100644 --- a/command_line.py +++ b/command_line.py @@ -734,7 +734,7 @@ class CommandBase(object): def make_desktop_file(self, nw_path, export_dest): icon_set = self.get_setting('icon') icon_path = os.path.join(self.project_dir(), icon_set.value) - if os.path.exists(icon_path): + if os.path.exists(icon_path) and icon_set.value: shutil.copy(icon_path, export_dest) icon_path = os.path.join(export_dest, os.path.basename(icon_path)) else: