Skip to content

Commit

Permalink
style: follow bandit
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax committed Dec 4, 2019
1 parent 6ecd230 commit 7f6abcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[bandit]
exclude: /test
skips: B606
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![codecov](https://codecov.io/gh/matfax/mutapath/branch/master/graph/badge.svg)](https://codecov.io/gh/matfax/mutapath)
[![Renovate Status](https://badges.renovateapi.com/github/matfax/mutapath)](https://renovatebot.com/)
[![CodeFactor](https://www.codefactor.io/repository/github/matfax/mutapath/badge)](https://www.codefactor.io/repository/github/matfax/mutapath)
[![security: bandit](https://img.shields.io/badge/security-bandit-purple.svg)](https://github.com/PyCQA/bandit)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mutapath)](https://pypi.org/project/mutapath/)
[![PyPI](https://img.shields.io/pypi/v/mutapath?color=%2339A7A6)](https://pypi.org/project/mutapath/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/mutapath?color=%231447F9)](https://pypistats.org/packages/mutapath)
Expand Down
6 changes: 3 additions & 3 deletions mutapath/immutapath.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,11 @@ def startfile(self, **kwargs):
.. seealso:: :func:`os.startfile`
"""
if os.name == "nt":
os.startfile(self._contained, **kwargs)
os.startfile(self.abspath(), **kwargs)
elif sys.platform == "darwin":
subprocess.call(['open', self._contained], **kwargs)
subprocess.call(['open', self.abspath()], **kwargs)
else:
subprocess.call(['xdg-open', self._contained], **kwargs)
subprocess.call(['xdg-open', self.abspath()], **kwargs)

@cached_property
def text(self):
Expand Down

0 comments on commit 7f6abcc

Please sign in to comment.