forked from sideeffects/GameDevelopmentToolset
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
26 lines (21 loc) · 915 Bytes
/
Copy pathrun.py
File metadata and controls
26 lines (21 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
import logging
import subprocess
HOUDINI_VERSION = "17.5"
def get_latest_houdini_version():
logging.info("Determining latest Houdini Version...")
sidefx_path = os.path.join(os.getenv("ProgramW6432"), "Side Effects Software")
version_list = os.listdir(sidefx_path)
version_list.reverse()
for possible_dir in version_list:
if HOUDINI_VERSION in possible_dir and not "Reality Capture" in possible_dir:
logging.info("Latest Local Houdini Install is %s..."%possible_dir)
return os.path.join(sidefx_path, possible_dir)
latest_houdini = get_latest_houdini_version()
#print latest_houdini
local_dir = os.path.dirname(__file__)
for filename in os.listdir(local_dir):
#print filename
if "test" in filename:
print "Running Test:", filename
subprocess.call([latest_houdini + "/bin/hython2.7.exe", os.path.join(local_dir, filename)])