From 8819e761fbe45082f4a1357b80eec2b9650a5910 Mon Sep 17 00:00:00 2001 From: John Whittington Date: Mon, 25 Sep 2017 10:45:14 +0000 Subject: [PATCH] WIP: ardmk-init more verbose about directory operating in --- bin/ardmk-init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 bin/ardmk-init diff --git a/bin/ardmk-init b/bin/ardmk-init old mode 100644 new mode 100755 index 225debe..5976f2e --- a/bin/ardmk-init +++ b/bin/ardmk-init @@ -32,8 +32,8 @@ directory = args.directory def generateMakefile(): src_dir = "" - puts(colored.cyan("Generating Arduino Makefile...")) - puts(colored.red("Any existing Makefile in current directory will be overwritten!!")) + puts(colored.cyan("Generating Arduino Ard-Makefile project in " + os.path.abspath(directory))) + puts(colored.red("Any existing Makefile in " + os.path.abspath(directory) + " will be overwritten!!")) # Header fileContents = "# Generated by ard-make version " + VERSION + "\n\n" btag = prompt.query('Board tag?', default='uno') @@ -111,7 +111,7 @@ def writeToMakefile(fileContents, path): def writeTemplate(filename): src = open((filename + ".ino"),'w') - puts(colored.cyan("Writing " + filename + ".ino...")) + puts(colored.cyan("Writing " + os.path.abspath(filename) + ".ino...")) if args.verbose: puts(colored.yellow(ard_template)) src.write("/* Project: " + filename + " */\n" + ard_template) @@ -120,7 +120,7 @@ def writeTemplate(filename): def checkCreateFolder(folder): if folder and not folder == 'AUTO': if not os.path.exists(folder): - puts(colored.cyan(("Creating " + folder + " folder"))) + puts(colored.cyan(("Creating " + os.path.abspath(folder) + " folder"))) os.makedirs(folder) def checkDefine(define, user):