Initially I just want to be python 2.5.5>Python2.7.5 start>Run c:/test.py
Finnaly I want to
Python 2.5.5 Create arrays and objects > Send to Python2.7.5 > Run c:/test.py with arrrays and items from Python2.5.5.
I probably wont be able to do it so I will probably use pickle module or a txt file to HDD with information I want to cover. I guess that will be the way to transfer data.
Unless some1 could hint me how to do it. But I mainly want to run my script from other python…
import sys
import site
sys.path.append(“C:\Python27\Lib\encodings”)
sys.path.append(“C:\Python27\Lib”)
import encodings
import subprocess
File "<string>", line 2, in <module>
File "C:\Program Files\App\lib\python\site.py", line 415, in <module>
main()
File "C:\Program Files\App\lib\python\site.py", line 406, in main
aliasmbcs()
File "C:\Program Files\App\lib\python\site.py", line 356, in aliasmbcs
import locale, codecs
File "C:\Program Files\App\lib\python\locale.py", line 14, in <module>
import sys, encodings, encodings.aliases
ImportError: No module named encodings
import comptypes
import os
import comtypes.client
import os
import re
ps = comtypes.client.CreateObject("Photoshop.Application")
ct = comtypes.client
and a lot more of my actions I need
I’m trying to start PS after render finish and stitch all images the render rendered and so on. Now the stitching and so on is all coded and done. I just cant figure out how to execute script with possibly custom variables if no I’ll pickle them.
As far as I can tell my python 2.5.5 is very basic and stript out of any modules and so on - or most of them. I have to hand import a lot of things to get it to work
And the problem is once I go to App\lib\python - there is no dlls, lib,plat-win,lib-tk,site-packages folders. Nothing. There is just python>python files and one folder which looks unrelated to python. I can zip it up and post it here.