Skip to content

Commit f0f3a0f

Browse files
olafklingtsletz
authored andcommitted
fix noprefix handling
if noprefix in the argument is not set it is set to 1 otherwise use argument
1 parent a517667 commit f0f3a0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/faust2appls/faust2sc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,10 @@ def faust2sc(faustfile, target_folder, noprefix, arch, faustflags):
549549
tmp_folder = tempfile.TemporaryDirectory(prefix="faust.")
550550

551551
# Generate supercollider class and help file
552-
noprefix = args.noprefix or 1
552+
if args.noprefix is None:
553+
noprefix = 1
554+
else:
555+
noprefix = args.noprefix
553556
scresult = faust2sc(args.inputfile, tmp_folder.name, noprefix, args.architecture, faustflags)
554557

555558
compile_supernova = args.supernova

0 commit comments

Comments
 (0)