Skip to content

Commit

Permalink
Merge branch 'arduinoAsSubModule'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael BRIDAY committed Dec 7, 2017
2 parents 7f66dac + ddae7a0 commit b889401
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion goil/templates/build/make_py.goilTemplate
Expand Up @@ -59,13 +59,21 @@ end foreach
#--- produced. This is done by the build.py file. #--- produced. This is done by the build.py file.
#--- build.py is generated each time goil is called by make.py #--- build.py is generated each time goil is called by make.py
#---------------------------------------------------------------------- #----------------------------------------------------------------------
from __future__ import print_function
import sys, os, subprocess, atexit, string import sys, os, subprocess, atexit, string


#--- Add the location of makefile.py to the import path #--- Add the location of makefile.py to the import path
sys.path.append("% !OS::BUILD_S::TRAMPOLINE_BASE_PATH %/make") sys.path.append("% !OS::BUILD_S::TRAMPOLINE_BASE_PATH %/make")


#--- Import the makefile system in python #--- Import the makefile system in python
import makefile, projfile try:
import makefile, projfile
except ImportError:
#it defines inline the red color, as other are defined in the makefile.py
print("\033[91mThe OS->BUILD->TRAMPOLINE_BASE_PATH key is not set correctly in the oil file % !OILFILENAME %.")
print("Set the correct Trampoline installation path in the oil file and run goil again:\033[0m")
print("goil -t=%!TARGET% --templates=%!TEMPLATEPATH% %!OILFILENAME%")
sys.exit(1)


#--- To work with relative paths #--- To work with relative paths
scriptDir = os.path.dirname (os.path.abspath (sys.argv[0])) scriptDir = os.path.dirname (os.path.abspath (sys.argv[0]))
Expand Down

0 comments on commit b889401

Please sign in to comment.