Skip to content

Instantly share code, notes, and snippets.

@Visgean
Created March 3, 2010 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Visgean/320903 to your computer and use it in GitHub Desktop.
Save Visgean/320903 to your computer and use it in GitHub Desktop.
#! /usr/bin/python
# -*- coding: UTF-8 -*-
# Script for discover where is some module which you want to use with starndart
# sys.path
import sys, os
desiredModule = raw_input("Module name: ")
for way in sys.path:
try:
for x in os.listdir(way):
if x[0:len(desiredModule)] == desiredModule:
print way + "/" + x
except OSError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment