[wingide-users] using scripts when installing python in non-standard locations

Marcin Krol mrkafk at gmail.com
Wed Jul 10 13:21:41 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have installed Anaconda installation of Python (which works ok so far).

I have added path to wingapi.py to sys.path:

import sys

sys.path.append('C:\\soft\\Wing IDE 4.1\\bin')


But that does not seem to help:


When running external cmd:

C:\>C:\soft\Anaconda\python.exe  "C:\soft\Wing IDE
4.1\scripts\pep8panel.py" --repeat --statistics
C:\tmp\tortoise_post_commit_hook.py

Traceback (most recent call last):
  File "C:\soft\Wing IDE 4.1\scripts\pep8panel.py", line 74, in <module>
    import wingapi
  File "C:\soft\Wing IDE 4.1\bin\wingapi.py", line 18, in <module>
    import edit.editor
ImportError: No module named edit.editor

I can import wingapi fine now (e.g. in Python Shell window in WingIDE)
but not edit.editor.

As result, pep8checker does not run in WingIDE.

Pls tell me how to make all the modules that third party scripts/tools
need to import from WingIDE resources available to those tools.



Regards,
Marcin Krol

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR3ZgkAAoJEFMgHzhQQ7hOa0cH/iHa7e2S8xtB77McyRxswH+P
GMnO/Kjbm/NgWK4z+lxwF+8XXGv9Sxnt3aRrbYpcyb7Vv9Fldy1s4FB98TBVJPiN
5Mk7+k3GAnibHR17Dt/72VLg12jOJtszn2uNLcwR3vqwL6lojHyAJ6EqqtusM5RX
qUe0j0TM8knTrY5wXYX3uBvVE8SPl7cdxTVnN3rcmiqelSZ1yOt5RoljbYHijIB5
iIAMN/qWuvedieRJSeBWgb7U4m4Gp7+Sv9c/4OOrN1ESO5KlO/S9QXucSbUkzSNj
2m08X7HoTaSVIGWfcyfXatcVK/6zj0Au9u1GPUH6PLDeQaiRw8Rpk/X5fD6M4qE=
=BGQp
-----END PGP SIGNATURE-----


More information about the wingide-users mailing list