summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/pythontex/depythontex.py
blob: 3d48e3b1daaf2020ed3197a4aaa7326f09cc2602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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