mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
More tolerance for config files
This commit is contained in:
@@ -296,6 +296,8 @@ sub load {
|
||||
|
||||
open my $fh, '<', $file;
|
||||
while (<$fh>) {
|
||||
next if /^\s+/;
|
||||
next if /^$/;
|
||||
next if /^\s*#/;
|
||||
/^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
||||
my $key = $1;
|
||||
|
||||
Reference in New Issue
Block a user