Re: How can I import other file in a python transform script

2012-05-18 Thread wzc
hi all: I have found the answer here : Adding the following lines before the import solved the problem: import sys import os sys.path.append(os.getcwd()) 2012/5/14 wzc > Hi all: > I try to run simple transform script in hive an

How can I import other file in a python transform script

2012-05-13 Thread wzc
Hi all: I try to run simple transform script in hive and my script is written in python. But when I try to import other file in the script the task fails. There may be some basic classes which are used by many transform scripts, so I would like to know how to import other file in my transform scrip