From ebef15aa39925869532def8777e4b3139221a8e3 Mon Sep 17 00:00:00 2001 From: Joerg Raedler Date: Thu, 11 Apr 2019 16:27:43 +0200 Subject: [PATCH] ... --- scripts/CoTeTo-module.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/CoTeTo-module.py b/scripts/CoTeTo-module.py index 267d5c3..d305e90 100644 --- a/scripts/CoTeTo-module.py +++ b/scripts/CoTeTo-module.py @@ -7,12 +7,10 @@ # This is an example of the usage of CoTeTo as a python module. # -import os -import sys - # check if we are running in the development folder - # just a hack to run this script without installing CoTeTo first - # usually not needed for users +import os, sys parent = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) if os.path.isfile(os.path.join(parent, 'setup.py')): sys.path.insert(0, parent) @@ -27,7 +25,7 @@ con = Controller() # 3. choose a generator ... -# a list of available generators can be printed with print(con.generators.keys()) +# (get a list of available generators with print(con.generators.keys())) gen = con.generators['Example01Mako::1.0'] # 4. ... and execute it!