mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 13:10:16 +08:00
11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
import { require_dlopen } from '.';
|
|
export function pty_loader () {
|
|
let pty: any;
|
|
try {
|
|
pty = require_dlopen('./native/pty/' + process.platform + '.' + process.arch + '/pty.node');
|
|
} catch {
|
|
pty = undefined;
|
|
}
|
|
return pty;
|
|
}
|