Skip to content

Commit e74234b

Browse files
committed
updated the scripts to explicitly call rmanpy3 rather than env python as moving to new python setup in the labs. I have included the update.sh script I used to do this for reference and you can use this to batch cange to other versions if required later
1 parent fb5603a commit e74234b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+90
-74
lines changed

ArgsExplorer/ArgsExplorer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
try: # support either PyQt5 or 6
33
from PySide2.QtCore import *
44
from PySide2.QtGui import *

Lecture1Intro/Attribute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import getpass

Lecture1Intro/Colour.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/Cube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/Exr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import getpass

Lecture1Intro/InlineArchive.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
# import the python renderman library

Lecture1Intro/ObjBegin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/Param.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/ParamSeExpr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/PrettyRib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
#
33
# (Copyright (C) 2008 Jonathan Macey [email protected]
44
#

Lecture1Intro/Primitives.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/ProcGeom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import getpass

Lecture1Intro/ReadArchive.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/ReadZip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/Test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
ri = prman.Ri() #

Lecture1Intro/affine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy3
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import getpass

Lecture1Intro/helloworld.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44

Lecture1Intro/transform1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture1Intro/transform2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Curves/Corn/Corn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import time, random

Lecture2Geo/Geometry/Curves/Corn/Grow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import time, random

Lecture2Geo/Geometry/Curves/Curves.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import time, random
33

44
# import the python renderman library

Lecture2Geo/Geometry/Curves/MultiCurve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import time, random

Lecture2Geo/Geometry/Particle/MayaParticleCache/MayaParticleCache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import os, sys, time, random

Lecture2Geo/Geometry/Particle/ParticleSystem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
import prman
44
from Emitter import *

Lecture2Geo/Geometry/Particle/rend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22

33
import os, commands, getopt, sys
44
class Usage(Exception):

Lecture2Geo/Geometry/Points/Points.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
from random import uniform as ru

Lecture2Geo/Geometry/Polygons/GeneralPolygon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Polygons/PointGeneralPolygon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Polygons/PointPolygon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Polygons/Polygon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Subdiv/Crease.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Subdiv/Cylinder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Subdiv/Hull.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Subdiv/HullHole.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Subdiv/Sphere.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Geometry/Subdiv/Subdiv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/ID/id.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# import the python renderman library
33
import prman
44

Lecture2Geo/Obj2Rib/ObjTest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import prman

Lecture2Geo/Procedural/Procedural.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import getpass

Lecture2Geo/Procedural/RunProgram.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
# for bash we need to add the following to our .bashrc
33
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
44
import getpass

Lecture2Geo/Procedural/spiral.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22

33
######################################################################
44
# spiral.py Renderman Procedural Usage

Lecture3Lighting/AOV/HairAOV.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import sys, subprocess
44

Lecture3Lighting/Composite/MatchVRAY/MatchVRAY.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import prman, os, sys, subprocess
44

Lecture3Lighting/Composite/MultipleFiles/MultipleFiles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import prman, os, sys, subprocess
44

Lecture3Lighting/Composite/ReLight/ReLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import prman, os, sys, subprocess
44

Lecture3Lighting/CryptoMatte.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman, os
33
import subprocess
44
import ProcessCommandLine as cl

Lecture3Lighting/Denoise/Denoise.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import prman, os, sys, subprocess
44

Lecture3Lighting/DistantLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import prman
44
import ProcessCommandLine as cl

Lecture3Lighting/EnvDayLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

Lecture3Lighting/EnvDomeLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

Lecture3Lighting/Gobo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import sys
33

44
sys.path.append("../common")

Lecture3Lighting/Hair.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import sys
33

44
sys.path.append("../common")

Lecture3Lighting/HairRot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import sys
33

44
sys.path.append("../common")

Lecture3Lighting/Layers/CheckerLayer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33
import prman
44

Lecture3Lighting/MeshLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman, os
33
import ProcessCommandLine as cl
44

Lecture3Lighting/PortalLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

Lecture3Lighting/PortalRoom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33
import ProcessCommandLine as cl
44

Lecture3Lighting/RectLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman, os
33
import ProcessCommandLine as cl
44

Lecture3Lighting/SphereLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
from __future__ import print_function
33

44
import os.path

Lecture3Lighting/Volume.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

Lecture3Lighting/basicScene.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33
import ProcessCommandLine as cl
44

Lecture3Lighting/diskLight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman, os
33
import subprocess
44
import ProcessCommandLine as cl

Lecture3Lighting/surfaces.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

Lecture4Shaders/Bands/bands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

Lecture4Shaders/Bands/scene.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env rmanpy
22
import prman
33

44
# import the python functions

0 commit comments

Comments
 (0)