[Freeciv-tickets] [freeciv] #43930: generate_packets.py: Use pathlib for file path handling

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Sun Feb 20 14:03:05 JST 2022


#43930: generate_packets.py: Use pathlib for file path handling

  Open Date: 2022-02-19 15:21
Last Update: 2022-02-20 07:03

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/43930
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43930

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-02-20 07:03 Updated by: cazfi

Comment:

Reply To alienvalkyrie
In addition to cleaning up parts of the code, this patch finally makes it possible to run the script on Windows without running into issues due to mixed path separators.
I assume that by "path separators" you mean separator between a directory and its subdirectory, not separator between entire paths like in PATH environment variable and the like.
Is there a risk that this *introduces* mixed dir separators? The build system runs it with parameters given with '/' separator. If it then appends to that with '\' separators, the resulting path will contain both.


---------------------------------------------------------------------
Ticket Status:

      Reporter: alienvalkyrie
         Owner: alienvalkyrie
          Type: Patches
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

Part of #43927. Using pathlib allows for clean, filesystem-agnostic handling of paths.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/43930
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43930



More information about the Freeciv-tickets mailing list
Zurück zum Archiv-Index