cpbotha / xdg-open-wsl

xdg-open replacement for WSL that opens files and links using Windows apps.
BSD 3-Clause "New" or "Revised" License
162 stars 12 forks source link

Syntax error #4

Closed rnadler closed 2 years ago

rnadler commented 4 years ago

Using WSL 1 with Python 3.5.2

$ xdg-open
  File "/home/bobn/bin/xdg-open", line 39
    table.append((f"{mount_point}/", drive[0:-1] + "/"))
                                  ^
SyntaxError: invalid syntax

Do I need to use a more recent version of phython3?

jornh commented 4 years ago

@rnadler Yes, at least python 3.6, what it chokes on above is an f-string: https://www.python.org/dev/peps/pep-0498/

cpbotha commented 2 years ago

Thank you @jornh -- confirmed that this requires at least Python 3.6, as is also indicated in the pyproject.toml