From c9ebd1a9dcf9ba30892d8ec41f2d72140c04ef42 Mon Sep 17 00:00:00 2001 From: Enea Scioni Date: Wed, 28 Mar 2018 12:23:04 +0200 Subject: [PATCH] [fix] create (empty) linkings.yml file This solve an issue when running `esrocos_build_project` --- bin/esrocos_create_project | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/esrocos_create_project b/bin/esrocos_create_project index edf0be6..8bea9af 100755 --- a/bin/esrocos_create_project +++ b/bin/esrocos_create_project @@ -8,6 +8,7 @@ import subprocess from subprocess import call ESROCOS_YAML = "esrocos.yml" +ESROCOS_LINKINGS_YAML = "linkings.yml" SRC_DIR = "dataview/" INSTALLED_TYPES_DIR = "installed_types/" INSTALLED_PKGS_DIR = "installed_pkgs/" @@ -92,6 +93,19 @@ except IOError as err: print "could not write to file, exit..." sys.exit() + +#GENERATE LINKINGS (empty) +data = {} +data["libs"] = [] + +try: + with open(ESROCOS_LINKINGS_YAML, 'w') as outfile: + yaml.dump(data, outfile, default_flow_style=False, allow_unicode=True) +except IOError as err: + print "could not write to file, exit..." + sys.exit() + + #CREATE FOLDER STRUCTURE print "create folder structure...\t", sys.stdout.flush()