From c913e19ccf4433b9abd8fc3357b25d40c670ca09 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 20 Oct 2015 23:33:53 +0200 Subject: [PATCH] [DEBUG] Correct creating directory of file when needed --- lutin/tools.py | 1 + lutin/z_target/lutinTarget_MacOs.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lutin/tools.py b/lutin/tools.py index 6b17d19..282184a 100644 --- a/lutin/tools.py +++ b/lutin/tools.py @@ -91,6 +91,7 @@ def file_write_data(path, data, only_if_new=False): if old_data == data: return #real write of data: + create_directory_of_file(path) file = open(path, "w") file.write(data) file.close() diff --git a/lutin/z_target/lutinTarget_MacOs.py b/lutin/z_target/lutinTarget_MacOs.py index adfe3cc..4f8b2fa 100644 --- a/lutin/z_target/lutinTarget_MacOs.py +++ b/lutin/z_target/lutinTarget_MacOs.py @@ -110,7 +110,6 @@ class Target(target.Target): data_file = "#!/bin/bash\n" data_file += "# Simply open the real application in the correct way (a link does not work ...)\n" data_file += "/Applications/" + pkg_name + ".app/Contents/MacOS/" + pkg_name + " $*\n" - #tmpFile.write("open -n /Applications/edn.app --args -AppCommandLineArg $*\n") tools.file_write_data(os.path.join(target_outpath, "shell", pkg_name), data_file, only_if_new=True)