Skip to content

EOL character on Windows #3

@TheSidi

Description

@TheSidi

Hi,

I had some issues with the EOL character in the "fdmfile.txt" and the input file when running pyFDMNES on a Windows machine. It seems that only a \n instead of a \n\r is written as an EOL which prevents FDMNES from running on Windows.

Following the suggestion from here:
https://stackoverflow.com/questions/38074811/what-is-os-linesep-for

I changed open(path, "w") to open(path, "wb") in line 667 and 694 of pyFDMNES.py

That seems to do the job for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions