Bug#1096186: fails with PYTHONSAFEPATH

Simon McVittie smcv at debian.org
Mon Feb 17 11:55:31 GMT 2025


On Mon, 17 Feb 2025 at 11:39:42 +0100, VA wrote:
> When running a game with PYTHONSAFEPATH=y, this error occurs at start:
...
> ModuleNotFoundError: No module named 'gdp_launcher_base'
> 
> The solution would be to insert some code like
> `sys.path.append(os.path.dirname(__file__))`

Yes, something like that.

> or better, properly package
> the source files into something like debian's dist-packages folder

This would not be better. dist-packages is intended for public Python
libraries with a stable API that can be used by other packages, and g-d-p
does not intend to provide a stable Python API for other packages, so it's
intentional that it installs its Python code into a private directory.

    smcv



More information about the Pkg-games-devel mailing list