Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerg Raedler committed Apr 11, 2019
1 parent 74a6a76 commit ebef15a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/CoTeTo-module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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!
Expand Down

0 comments on commit ebef15a

Please sign in to comment.