Skip to content

Commit

Permalink
[examples] add sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
aslpavel committed Sep 25, 2024
1 parent 936df1d commit ba4eb18
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/basic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python
import asyncio
import os
import sys

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
from wayland import SharedMemory
from wayland.client import ClientConnection
from wayland.protocol.wayland import WlBuffer, WlCompositor, WlShm
Expand Down
3 changes: 3 additions & 0 deletions examples/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from __future__ import annotations

import asyncio
import os
import sys

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
from wayland.client import ClientConnection
from wayland.protocol.wayland import WlDataDeviceManager, WlSeat

Expand Down
6 changes: 6 additions & 0 deletions examples/globals.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env python
from __future__ import annotations

import asyncio
import sys
import os

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
from wayland.client import ClientConnection


Expand Down
4 changes: 4 additions & 0 deletions examples/metaballs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@

import asyncio
import math
import os
import sys
import time
from collections.abc import Callable

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

import numpy as np
import numpy.linalg as la
import numpy.typing as npt
Expand Down

0 comments on commit ba4eb18

Please sign in to comment.