author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
Tue, 18 Oct 2016 13:46:28 -0500 | |
changeset 7126 | c0715e78cafb |
parent 1568 | b73d1dab3340 |
permissions | -rw-r--r-- |
1568
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
1 |
In-house developed patch. |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
2 |
Patch to overall Cheetah test framework to find the correct version of |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
3 |
Python to use based on the $PYTHON_VERSION environment variable. |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
4 |
Solaris-specific; not suitable for upstream |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
5 |
|
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
6 |
--- Cheetah-2.4.4/cheetah/Tests/CheetahWrapper.py.orig Thu Sep 16 12:21:36 2010 |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
7 |
+++ Cheetah-2.4.4/cheetah/Tests/CheetahWrapper.py Sun Sep 1 01:27:50 2013 |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
8 |
@@ -63,7 +63,11 @@ |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
9 |
"""Create the top-level directories, subdirectories and .tmpl |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
10 |
files. |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
11 |
""" |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
12 |
- self.cmd = self.locate_cheetah('cheetah') |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
13 |
+ if not os.environ.get('PYTHON_VERSION'): |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
14 |
+ self.cmd = self.locate_cheetah('cheetah') |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
15 |
+ else: |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
16 |
+ self.cmd = self.locate_cheetah( |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
17 |
+ ''.join(['cheetah-', os.environ['PYTHON_VERSION']])) |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
18 |
pythonPath = os.getcwd() |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
19 |
if not os.environ.get('PYTHONPATH'): |
b73d1dab3340
PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff
changeset
|
20 |
os.environ['PYTHONPATH'] = pythonPath |