Debian Codegraph @

texk/texlive/linked_scripts/pythontex/depythontex.py

raw
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 '''
5 This is the depythontex wrapper script. It automatically detects the version
6 of Python, and then imports the correct code from depythontex2.py or
7 depythontex3.py. It is intended for use with the default Python installation
8 on your system. If you wish to use a different version of Python, you could
9 launch depythontex2.py or depythontex3.py directly. The version of Python
10 does not matter for depythontex, since no code is executed.
11
12 Copyright (c) 2013-2026, Geoffrey M. Poore
13 All rights reserved.
14 Licensed under the BSD 3-Clause License:
15 http://www.opensource.org/licenses/BSD-3-Clause
16
17 '''
18
19 import sys
20 if sys.version_info[0] == 2:
21 import depythontex2 as depythontex
22 elif sys.version_info[0] == 3:
23 import depythontex3 as depythontex