Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
32650: Creating feature dvipng
Browse files Browse the repository at this point in the history
  • Loading branch information
seblabbe committed Nov 2, 2021
1 parent f716a0b commit 8068ba5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/sage/features/dvipng.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
r"""
Check for dvipng
"""
# ****************************************************************************
# Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# https://www.gnu.org/licenses/
# ****************************************************************************

from . import Executable

class dvipng(Executable):
r"""
A :class:`sage.features.Feature` describing the presence of ``dvipng``
EXAMPLES::
sage: from sage.features.dvipng import dvipng
sage: dvipng().is_present() # optional: dvipng
FeatureTestResult('dvipng', True)
"""
def __init__(self):
r"""
TESTS::
sage: from sage.features.dvipng import dvipng
sage: isinstance(dvipng(), dvipng)
True
"""
Executable.__init__(self, "dvipng", executable="dvipng",
url="https://savannah.nongnu.org/projects/dvipng/")

0 comments on commit 8068ba5

Please sign in to comment.