Skip to content

Test3D: Change absolute filepaths to relative#106

Open
samclane wants to merge 1 commit into
TinyCircuits:mainfrom
samclane:patch-1
Open

Test3D: Change absolute filepaths to relative#106
samclane wants to merge 1 commit into
TinyCircuits:mainfrom
samclane:patch-1

Conversation

@samclane

@samclane samclane commented Jan 5, 2025

Copy link
Copy Markdown

Problem:

Running the game Test3D from the launcher gives:

Traceback (most recent call last):
  File "main.py", line 58, in <module>
  File "//Games/TestGames/Test3D/main.py", line 96, in <module>
OSError: [Errno 2] ENOENT

This is probably because when running it via Thonny serial connection, the working directory is /, so the absolute pathing works fine in that case.

Solution:

Change file paths to relative, so Test3D can be run from the launcher.

@samclane samclane changed the title Test3D change absolute filepaths to relative Test3D: Change absolute filepaths to relative Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant