Skip to content

Commit ef0d671

Browse files
committed
time based win
1 parent f157b1e commit ef0d671

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/xasync_runner.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ namespace xpyt
2626

2727
void xasync_runner::run_impl()
2828
{
29-
29+
std::cout << "get descriptors "<< std::endl;
3030

3131
int fd_shell_int = static_cast<int>(this->get_shell_fd());
3232
int fd_controller_int = static_cast<int>(this-> get_shell_controller_fd());
3333

34+
std::cout << "Got descriptors: " << fd_shell_int << ", " << fd_controller_int << std::endl;
35+
3436
// wrap this->on_message_doorbell_shell and this->on_message_doorbell_controller
3537
// into a py::cpp_function
3638
py::cpp_function shell_callback = py::cpp_function([this]() {
@@ -44,7 +46,7 @@ namespace xpyt
4446
py::exec(R"(
4547
4648
import sys
47-
is_win = sys.platform.startswith("win")
49+
is_win = sys.platform.startswith("win") or sys.platform.startswith("cygwin") or sys.platform.startswith("msys")
4850
4951
import asyncio
5052
if is_win:

0 commit comments

Comments
 (0)