diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/pythontex/depythontex.py |
Initial commit
Diffstat (limited to 'macros/latex/contrib/pythontex/depythontex.py')
-rw-r--r-- | macros/latex/contrib/pythontex/depythontex.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/pythontex/depythontex.py b/macros/latex/contrib/pythontex/depythontex.py new file mode 100644 index 0000000000..3d48e3b1da --- /dev/null +++ b/macros/latex/contrib/pythontex/depythontex.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +''' +This is the depythontex wrapper script. It automatically detects the version +of Python, and then imports the correct code from depythontex2.py or +depythontex3.py. It is intended for use with the default Python installation +on your system. If you wish to use a different version of Python, you could +launch depythontex2.py or depythontex3.py directly. The version of Python +does not matter for depythontex, since no code is executed. + +Copyright (c) 2013-2017, Geoffrey M. Poore +All rights reserved. +Licensed under the BSD 3-Clause License: + http://www.opensource.org/licenses/BSD-3-Clause + +''' + +import sys +if sys.version_info[0] == 2: + import depythontex2 as depythontex +elif sys.version_info[0] == 3: + import depythontex3 as depythontex |