yosh778 / NoPayStationGetDLCs

The Unlicense
9 stars 1 forks source link

Cannot use absolute path for PKG2ZIP #2

Open arromdee opened 6 years ago

arromdee commented 6 years ago

I modified the script to set PKG2ZIP to /usr/local/bin/pkg2zip. This doesn't work because the script does not recognize that starting it with / means an absolute path.

AnalogMan151 commented 6 years ago

It's due to this line right here: https://github.com/yosh778/NoPayStationGetDLCs/blob/master/getdlc.py#L106

Change it to this for desired affect:

subprocess.check_call( [ PKG2ZIP, "-x", "tmp.pkg", zRIF ], stdout=open(os.devnull, 'wb') )