Skip to content

Commit

Permalink
doctring for LaTeXDir
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Sep 23, 2015
1 parent 3070b89 commit 7212ba5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wqio/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,19 @@ def __str__(self):


class LaTeXDirecory(object):
""" Context manager to help compile latex docs from python.
Switches to the latex document's folder and remains there while
inside the manager. The present working directory is restored once
the context manager exits.
Parameters
----------
texpath : string
The LaTeX source file or the directory in which it is found.
"""

def __init__(self, texpath):
self.home = os.getcwd()
if os.path.isfile(texpath):
Expand Down

0 comments on commit 7212ba5

Please sign in to comment.