Skip to content

warning is raised when running the Flask application on non-Windows platforms #117

Closed

Description

@saksham-gera

SyntaxWarning: invalid escape sequence '\l'
proc = subprocess.check_output(["..\library", library_path, filename], shell=True, cwd=dir_path)

Steps to Reproduce
1. Run the Flask application on macOS/Linux.
2. Observe the SyntaxWarning in the logs when the app initializes.

Expected Behavior
• No warnings are raised.
• Path handling is platform-agnostic and does not produce errors or warnings on non-Windows platforms.

Environment
• OS: macOS/Linux
• Python Version: 3.8+
• Flask Version: 2.x

Activity

  1. saksham-gera commented on Jan 16, 2025

    @saksham-gera
    ContributorAuthor

    Hi @pradeeban ,

    I noticed this issue and would like to take it up if that’s okay with you. Let me know if I can proceed with resolving it!

    Thanks! 😊

  2. pradeeban commented on Jan 31, 2025

    @pradeeban
    Member

    @saksham-gera sure, go for it.

  3. pradeeban commented on Feb 4, 2025

    @pradeeban
    Member

    Thanks for the fix.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions