Skip to content

Commit

Permalink
README: Fix instructions for running from a local directory
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Oct 31, 2024
1 parent df341f0 commit a856067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ Windows:
- Clone the repository `git clone https://github.com/C0rn3j/sc-controller.git` and navigate into it: `cd sc-controller`
- `python3 -m build --wheel`
- `python3 -m installer --destdir="./build" dist/*.whl`
- Run the app via: `./build/usr/bin/sc-controller`

- Run the app via: `SCC_SHARED="${PWD}" PYTHONPATH="./build/usr/lib/python3.12/site-packages" PATH="${PWD}/build/usr/bin:${PATH}" ./build/usr/bin/sc-controller`

### Via Docker
A test build with Docker can be created using the following way:
Expand Down
4 changes: 2 additions & 2 deletions scc/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def find_library(libname: str) -> ctypes.CDLL:
os.path.abspath(os.path.normpath(
os.path.join( base_path, "..", libname + extension ))),
os.path.abspath(os.path.normpath(
os.path.join( base_path, "../..", libname + extension )))
os.path.join( site_packages_path, libname + extension ))),
]

for path in search_paths:
Expand All @@ -352,7 +352,7 @@ def find_library(libname: str) -> ctypes.CDLL:
break

if not lib:
raise OSError("Cant find {}.so. searched at:\n {}".format(libname, "\n".join(search_paths)))
raise OSError("Cant find {}.so. searched at:\n {}".format(libname, "\n ".join(search_paths)))
return ctypes.CDLL(lib)


Expand Down

0 comments on commit a856067

Please sign in to comment.