Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Commit

Permalink
Cleanup sessions on close and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Aug 30, 2014
1 parent 4988a81 commit cbf6438
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Release History
---------------

0.4.0 (2014-08-xx)
0.4.0 (2014-08-30)
++++++++++++++++++
- Add suppport for Scilab 5.4

Expand Down
2 changes: 1 addition & 1 deletion scilab2py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


__title__ = 'scilab2py'
__version__ = '0.3'
__version__ = '0.4'
__author__ = 'Steven Silvester'
__license__ = 'MIT'
__copyright__ = 'Copyright 2014 Steven Silvester'
Expand Down
2 changes: 2 additions & 0 deletions scilab2py/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def eval(self, cmds, verbose=False, timeout=None, log=True,
def restart(self):
"""Restart an Scilab session in a clean state
"""
if self._session:
self._session.close()
self._reader = MatRead(self._temp_dir)
self._writer = MatWrite(self._temp_dir, self._oned_as)
self._session = _Session(self._executable,
Expand Down

0 comments on commit cbf6438

Please sign in to comment.