1.1 --- a/gmyth-stream/server/0.3/lib/file_handler.py Wed Jul 04 13:38:51 2007 +0100
1.2 +++ b/gmyth-stream/server/0.3/lib/file_handler.py Tue Aug 21 16:04:44 2007 +0100
1.3 @@ -32,14 +32,20 @@
1.4 name = os.path.basename(self.opts["uri"][0])
1.5 self.opts["original"] = [name]
1.6 output_file = os.path.basename(self.opts["outfile"][0])
1.7 - output = open(".transcoded/%s.dat" % \
1.8 - os.path.splitext(output_file)[0], "wb")
1.9 + dat_file = output_file + ".dat";
1.10 + dat_path = os.path.join (utils.config.get_transcoded_location(),
1.11 + dat_file);
1.12 +
1.13 + output = open(dat_path, "wb")
1.14 # dumps data using the highest protocol
1.15 pickle.dump(self.opts, output, -1)
1.16 output.close()
1.17 else:
1.18 name = os.path.splitext(os.path.basename(filename))[0]
1.19 - pkl_file = open(".transcoded/%s.dat" % name, "rb")
1.20 + dat_file = name + ".dat";
1.21 + dat_path = os.path.join (utils.config.get_transcoded_location(),
1.22 + dat_file);
1.23 + pkl_file = open(dat_path, "rb")
1.24 self.opts = pickle.load(pkl_file)
1.25 # __init__()
1.26