Skip to content

Commit 2309621

Browse files
committed
Correct save profile.ini file content
1 parent 4d93893 commit 2309621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ffpm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ def import_profile(
457457
if PROFILES_INI.exists():
458458
import configparser
459459
config = configparser.RawConfigParser()
460+
config.optionxform = str
460461
config.read(PROFILES_INI)
461462
# Find next available profile index
462463
indices = [int(s[7:]) for s in config.sections() if s.startswith("Profile") and s[7:].isdigit()]
@@ -468,7 +469,7 @@ def import_profile(
468469
rel_path = f"Profiles/{name}"
469470
config.set(section, "Path", rel_path)
470471
with PROFILES_INI.open("w") as f:
471-
config.write(f)
472+
config.write(f, space_around_delimiters=False)
472473
typer.echo(f"Imported profile as '{name}' at {dest_dir}")
473474

474475

0 commit comments

Comments
 (0)