Skip to content

Commit

Permalink
try to improve python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jan 13, 2024
1 parent 42d4156 commit 17674d8
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ htmldocs/

# builded
**/build/
happyx_linkerArgs.txt

# Test HappyX projects
test*/
Expand Down
Binary file modified bindings/python/happyx/happyx.pyd
Binary file not shown.
Binary file modified bindings/python/happyx/happyx_no_realtime.pyd
Binary file not shown.
Binary file modified bindings/python/happyx/happyx_threaded.pyd
Binary file not shown.
Binary file modified bindings/python/happyx/happyx_threaded_no_realtime.pyd
Binary file not shown.
6 changes: 3 additions & 3 deletions bindings/python/happyx/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def __init__(
if Server._was_imported:
Server._was_imported = True
if disable_realtime and enable_threads:
happyx = __import__('happyx_threaded_no_realtime')
Server.hpx_lib = __import__('happyx_threaded_no_realtime')
elif disable_realtime:
happyx = __import__('happyx_no_realtime')
Server.hpx_lib = __import__('happyx_no_realtime')
elif enable_threads:
happyx = __import__('happyx_threaded')
Server.hpx_lib = __import__('happyx_threaded')
self.host = host
self.port = port
self._server = Server.hpx_lib.new_server(host, port)
Expand Down
2 changes: 1 addition & 1 deletion happyx.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

description = "Macro-oriented asynchronous web-framework written with ♥"
author = "HapticX"
version = "3.8.7"
version = "3.8.8"
license = "MIT"
srcDir = "src"
installExt = @["nim"]
Expand Down
2 changes: 1 addition & 1 deletion src/happyx/core/constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const
# Framework version
HpxMajor* = 3
HpxMinor* = 8
HpxPatch* = 7
HpxPatch* = 8
HpxVersion* = $HpxMajor & "." & $HpxMinor & "." & $HpxPatch


Expand Down

0 comments on commit 17674d8

Please sign in to comment.