Lines 20-30
Link Here
|
20 |
|
20 |
|
21 |
class ConversionFailed(Exception): pass |
21 |
class ConversionFailed(Exception): pass |
22 |
|
22 |
|
23 |
helperdir=os.path.join(common.get_main_dir(), "helpers") |
23 |
helperdir="/usr/bin" |
24 |
|
24 |
|
25 |
osext={'win32': '.exe', |
25 |
osext={'win32': '.exe', |
26 |
'darwin': '.mbin', |
26 |
'darwin': '.mbin', |
27 |
'linux2': '.lbin'} \ |
27 |
'linux2': ''} \ |
28 |
[sys.platform] |
28 |
[sys.platform] |
29 |
|
29 |
|
30 |
# This shortname crap is needed because Windows programs (including ffmpeg) |
30 |
# This shortname crap is needed because Windows programs (including ffmpeg) |
Lines 128-141
Link Here
|
128 |
p=sys.path[0] |
128 |
p=sys.path[0] |
129 |
if os.path.isfile(p): |
129 |
if os.path.isfile(p): |
130 |
p=os.path.dirname(p) |
130 |
p=os.path.dirname(p) |
131 |
helpersdirectory=os.path.abspath(os.path.join(p, 'helpers')) |
131 |
helpersdirectory="/usr/bin" |
132 |
print "Helper Directory: "+helpersdirectory |
132 |
print "Helper Directory: "+helpersdirectory |
133 |
if sys.platform=='win32': |
133 |
if sys.platform=='win32': |
134 |
osext=".exe" |
134 |
osext=".exe" |
135 |
if sys.platform=='darwin': |
135 |
if sys.platform=='darwin': |
136 |
osext=".mbin" |
136 |
osext=".mbin" |
137 |
if sys.platform=='linux2': |
137 |
if sys.platform=='linux2': |
138 |
osext=".lbin" |
138 |
osext="" |
139 |
|
139 |
|
140 |
pngtopnmbin=gethelperbinary('pngtopnm') |
140 |
pngtopnmbin=gethelperbinary('pngtopnm') |
141 |
ppmquantbin=gethelperbinary('ppmquant') |
141 |
ppmquantbin=gethelperbinary('ppmquant') |