Skip to content

REPO: Linux compatibility with .py files (line endings/autoCRLF) #20

Description

@Danweel

Windows causes a problem due to expecting Carriage Return+Line Feed at the end of lines (CRLF):

Git can take care of this by adding a note to .gitattributes :

*.py text eol=lf

which instructs it to automatically use Git's core.autocrlf
which does this when checking out of Windows:

git config --global core.autocrlf input

and this when checkign out of Linux/Mac:

git config --global core.autocrlf true
  1. Run dos2unix TheViolenceLayerManager.py once on your Linux machine to fix the current ^M errors.
  2. Add the .gitattributes file to the repo.
  3. Commit.
  4. Windows users will get the file with correct line endings automatically. They won't see any difference in functionality.

Not urgent because there is no included py files yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A issueA-class issues are project-stopping of any sortSpicyHigh severity issues that affect use within the scope of its class.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions