title: install SWIG python package in windows
body: <p>i created a test c dll, which export one function i would like to expose to python bindings. I used the latest version fo SWIG for that. After successful compilation, SWIG leaves me with a x.py and a x.dll file.</p>
  
  <p>Now i am supposed to "import" the "package". However, no matter where i copy those files, when i type "import x" in python i get "ImportError: No module named 'x'".</p>
  
  <p>So how do i load such a custom created package in python?</p>
  
  <p>I am running windows 7 x64, with python 3.3 and latest SWIG.</p>
  
  <p>thanks</p>
  
  <p>edit: we are getting somewhere! I did some path trickery, now the module is found, but:</p>
  
  <pre><code>      File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File ".\_pt1.py", line 28, in &lt;module&gt;
          _pt1 = swig_import_helper()
        File ".\_pt1.py", line 24, in swig_import_helper
          _mod = imp.load_module('_pt1', fp, pathname, description)
        File "C:\Python33\lib\imp.py", line 180, in load_module
          return load_source(name, filename, file)
        File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File ".\_pt1.py", line 28, in &lt;module&gt;
          _pt1 = swig_import_helper()
        File ".\_pt1.py", line 24, in swig_import_helper
          _mod = imp.load_module('_pt1', fp, pathname, description)
        File "C:\Python33\lib\imp.py", line 180, in load_module
          return load_source(name, filename, file)
        File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File ".\_pt1.py", line 28, in &lt;module&gt;
          _pt1 = swig_import_helper()
        File ".\_pt1.py", line 24, in swig_import_helper
          _mod = imp.load_module('_pt1', fp, pathname, description)
        File "C:\Python33\lib\imp.py", line 180, in load_module
          return load_source(name, filename, file)
        File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File ".\_pt1.py", line 28, in &lt;module&gt;
          _pt1 = swig_import_helper()
        File ".\_pt1.py", line 24, in swig_import_helper
          _mod = imp.load_module('_pt1', fp, pathname, description)
        File "C:\Python33\lib\imp.py", line 180, in load_module
          return load_source(name, filename, file)
        File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File ".\_pt1.py", line 28, in &lt;module&gt;
          _pt1 = swig_import_helper()
        File ".\_pt1.py", line 24, in swig_import_helper
          _mod = imp.load_module('_pt1', fp, pathname, description)
        File "C:\Python33\lib\imp.py", line 180, in load_module
          return load_source(name, filename, file)
        File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File ".\_pt1.py", line 28, in &lt;module&gt;
          _pt1 = swig_import_helper()
        File ".\_pt1.py", line 24, in swig_import_helper
          _mod = imp.load_module('_pt1', fp, pathname, description)
        File "C:\Python33\lib\imp.py", line 180, in load_module
          return load_source(name, filename, file)
        File "C:\Python33\lib\imp.py", line 119, in load_source
          _LoadSourceCompatibility(name, pathname, file).load_module(name)
        File "&lt;frozen importlib._bootstrap&gt;", line 584, in _check_name_wrapper
        File "&lt;frozen importlib._bootstrap&gt;", line 1022, in load_module
        File "&lt;frozen importlib._bootstrap&gt;", line 1003, in load_module
        File "&lt;frozen importlib._bootstrap&gt;", line 560, in module_for_loader_wrapper
        File "&lt;frozen importlib._bootstrap&gt;", line 853, in _load_module
        File "&lt;frozen importlib._bootstrap&gt;", line 954, in get_code
        File "C:\Python33\lib\imp.py", line 106, in get_data
          return super().get_data(path)
        File "&lt;frozen importlib._bootstrap&gt;", line 1032, in get_data
      RuntimeError: maximum recursion depth exceeded while calling a Python object
  </code></pre>
  
  <p>where pt1 is my test module.</p>
  
  <p>edit2:</p>
  
  <p>I have uploaded all the files here: (40kb) rghost.net/53170317</p>