This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# SWT documentation build configuration file, created by | |
# sphinx-quickstart on Tue Feb 26 18:19:43 2013. | |
# | |
# The author of this program disclaims copyright. | |
import sys, os | |
import re | |
from docutils import nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Extension's __file__ attribute is not initialized until after the init | |
function returns. To set submodules' __file__ at init time we will | |
have to retrieve it from the OS. */ | |
#if defined(_WIN32) | |
#include <Windows.h> | |
static PyObject *get_current_file() { | |
HMODULE hModule; | |
union { | |
CHAR nameA[MAX_PATH]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This software released into the public domain. Anyone is free to copy, | |
# modify, publish, use, compile, sell, or distribute this software, | |
# either in source code form or as a compiled binary, for any purpose, | |
# commercial or non-commercial, and by any means. | |
import socket | |
import ctypes | |
class sockaddr(ctypes.Structure): | |
_fields_ = [("sa_family", ctypes.c_short), |