Skip to content

Commit 2ad6496

Browse files
author
Dan Weatherill
committed
fix missing ENABLE statement for the first clock driver definition
1 parent b3294f6 commit 2ad6496

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

wdl/commands/legacy_drivers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Optional
44
from argparse import ArgumentParser
55
from sys import stdout
6-
6+
import os
77
from .driverbase import WDLDriver
88

99
from wdl.ini2acf import generate_acf
@@ -67,7 +67,7 @@ def _write_output(self, archonkw: str, fileext: str, output: str) -> int:
6767
fname: str = f"{self._projname}.{fileext}"
6868
logger.debug("filename is: %s", fname)
6969
with open(fname, "w") as f:
70-
f.writelines([f"[{archonkw}]"])
70+
f.writelines([f"[{archonkw}]{os.linesep}"])
7171
f.write(output)
7272

7373
class IncParserDriver(WDLDriver):

wdl/ini2acf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def generate_acf(inifile: str | Path | TextIOWrapper,
5959
outp: list[str] = []
6060

6161
#need to add [CONFIG] at the top
62-
outp.append("[CONFIG]")
62+
outp.append(f"[CONFIG]{linesep}")
6363

6464
for secname, seclines, process in _section_replace_filter(inp):
6565
if process:

0 commit comments

Comments
 (0)