Skip to content

Commit a0ba0f8

Browse files
Update to python3 C API
1 parent 9c872d3 commit a0ba0f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
3333

3434
/* set up import path */
3535
PyObject *sysPath = PySys_GetObject("path");
36-
PyObject *path = PyString_FromString("./");
36+
PyObject *path = PyUnicode_FromString("./");
3737
PyList_Insert(sysPath, 0, path);
3838

3939
FILE * mainpy = fopen(MAINPY, "r");

0 commit comments

Comments
 (0)