Forum: Poser Python Scripting


Subject: os.startfile

Naylin opened this issue on Feb 01, 2007 ยท 12 posts


PhilC posted Sat, 03 February 2007 at 1:54 AM

poser.ExecFile('filepath') works on PC and Mac for Poser 5 & 6 and PC Poser 7

Could someone please test with Poser 7 on a Mac. My tests appear to show that it does not.

###########################

Save as :Runtime:Python:poserScripts:test:ExecFileTest.py

pathname = os.path.split(poser.AppLocation())[0]
filePath = os.path.join(pathname, 'Runtime', 'Python', 'poserScripts', 'test', 'execfile_1.py')
poser.ExecFile(filePath)

##########################

Save as :Runtime:Python:poserScripts:test:execfile_1.py

print "execfile_1.py run OK"

#########################

Run ExecFileTest.py to execute execfile_1.py

Works on a PC fails on a Mac