Skip to content

Commit

Permalink
fixed paths to demo files in CLI function and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
kip-hart committed Nov 5, 2019
1 parent 10e714f commit 8c3d0de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.

`Unreleased`_
-------------
`1.1.1`_ - 2019-11-05
---------------------
Added
'''''
- DOI links to readme and documentation.

Changed
'''''''
- Added logos, icons, social meta data for HTML documentation
- Added logos, icons, social meta data for HTML documentation.

Fixed
'''''
- Paths to demo files in CLI.

`1.1.0`_ - 2019-09-27
-------------------
---------------------

Added
'''''
Expand All @@ -37,7 +41,7 @@ Changed


`1.0.0`_ - 2019-09-07
-------------------
---------------------

Added
'''''
Expand All @@ -47,7 +51,8 @@ Added

.. LINKS
.. _`Unreleased`: https://github.com/kip-hart/MicroStructPy/compare/v1.1.0...HEAD
.. _`Unreleased`: https://github.com/kip-hart/MicroStructPy/compare/v1.1.1...HEAD
.. _`1.1.1`: https://github.com/kip-hart/MicroStructPy/compare/v1.1.0...v1.1.1
.. _`1.1.0`: https://github.com/kip-hart/MicroStructPy/compare/v1.0.1...v1.1.0
.. _`1.0.1`: https://github.com/kip-hart/MicroStructPy/compare/v1.0.0...v1.0.1
.. _`1.0.0`: https://github.com/kip-hart/MicroStructPy/releases/tag/v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions src/microstructpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def main():
run_file(filename)

# run demo files
cli_path = os.path.realpath(__file__)
demo_path = os.path.normpath(os.path.join(cli_path, '../../../examples/'))
cli_path = os.path.dirname(__file__)
demo_path = os.path.normpath(os.path.join(cli_path, '../../examples/'))
demo_files = args.demo_files

if len(demo_files) == 1 and demo_files[0].lower().strip() == 'all':
Expand Down

0 comments on commit 8c3d0de

Please sign in to comment.