Skip to content
Permalink
Browse files

update notebook and __init__.py

  • Loading branch information...
sdpython committed Jan 21, 2016
1 parent 1d7b8ec commit ef51b2e86821a0e847a2f724fa5ef562d3f9e3af
Showing with 22 additions and 1 deletion.
  1. +6 −1 _doc/notebooks/pyensae_flat2db3.ipynb
  2. +16 −0 src/pyensae/__init__.py
@@ -415,7 +415,12 @@
],
"source": [
"from pymyinstall.installcustom import install_sqlitespy\n",
"exe = install_sqlitespy()\n",
"try:\n",
" exe = install_sqlitespy()\n",
"except:\n",
" # we skip an exception\n",
" # the website can be down...\n",
" exe = None\n",
"exe"
]
},
@@ -16,6 +16,22 @@
__license__ = "MIT License"


def _setup_hook(add_print=False, unit_test=False):
"""
if this function is added to the module,
the help automation and unit tests call it first before
anything goes on as an initialization step.
It should be run in a separate process.
@param add_print print *Success: _setup_hook*
@param unit_test used only for unit testing purpose
"""
# we can check many things, needed module
# any others things before unit tests are started
if add_print:
print("Success: _setup_hook")


def check(log=False):
"""
Checks the library is working.

0 comments on commit ef51b2e

Please sign in to comment.
You can’t perform that action at this time.