From f7ab516dca54e67d81f7c5e97c5adcec8b69072f Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Sat, 16 Jul 2016 04:53:09 -0400 Subject: [PATCH] Don't assume relative paths! DON'T. --- NAND/title/build_nand.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 NAND/title/build_nand.py diff --git a/NAND/title/build_nand.py b/NAND/title/build_nand.py old mode 100644 new mode 100755 index d5d2828..506e6cf --- a/NAND/title/build_nand.py +++ b/NAND/title/build_nand.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python import glob import os import sys @@ -15,11 +15,11 @@ def main(): if not os.path.exists(outdir): os.makedirs(outdir) cia = os.path.join(sys.argv[1], i) - os.system("./ctrtool --tmd=" + outdir + "/00000000.tmd --contents=" + outdir + "/contents '" + cia + "'") + os.system("ctrtool --tmd=" + outdir + "/00000000.tmd --contents=" + outdir + "/contents '" + cia + "'") items = glob.glob(outdir + '/contents.*') for item in items: cid = item[-8:] os.rename(item, os.path.join(outdir,cid + '.app')) if __name__ == "__main__": - main() \ No newline at end of file + main() -- 2.39.5