Minor changes to pack processor
This commit is contained in:
@@ -6,10 +6,11 @@ import shutil
|
|||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import traceback
|
||||||
|
|
||||||
# Specify the directory where your .frag files are located
|
# Specify the directory where your .frag files are located
|
||||||
source_directory = 'src'
|
source_directory = 'src'
|
||||||
temp_directory = 'processed'
|
temp_directory = 'packs_processed'
|
||||||
output_directory = 'build'
|
output_directory = 'build'
|
||||||
dirname = ''
|
dirname = ''
|
||||||
|
|
||||||
@@ -78,11 +79,11 @@ Examples:
|
|||||||
help='Enable verbose output')
|
help='Enable verbose output')
|
||||||
|
|
||||||
parser.add_argument('-o', '--output',
|
parser.add_argument('-o', '--output',
|
||||||
default='build',
|
default='packs_build',
|
||||||
help='Output Directory')
|
help='Output Directory')
|
||||||
|
|
||||||
parser.add_argument('-t', '--temp',
|
parser.add_argument('-t', '--temp',
|
||||||
default='processed',
|
default='packs_processed',
|
||||||
help='Temporary Files Directory')
|
help='Temporary Files Directory')
|
||||||
|
|
||||||
parser.add_argument('-q', '--qsb',
|
parser.add_argument('-q', '--qsb',
|
||||||
@@ -268,6 +269,9 @@ def compile():
|
|||||||
except PermissionError:
|
except PermissionError:
|
||||||
print(f"Error: Permission denied: '{args.input}'")
|
print(f"Error: Permission denied: '{args.input}'")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except Exception as e:
|
||||||
|
print(traceback.format_exc())
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
process()
|
process()
|
||||||
|
|||||||
Reference in New Issue
Block a user