From: chaoskagami Date: Sat, 16 Jul 2016 08:53:09 +0000 (-0400) Subject: Don't assume relative paths! DON'T. X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=f7ab516dca54e67d81f7c5e97c5adcec8b69072f;p=console%2FXDS.git Don't assume relative paths! DON'T. --- 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()