Created
March 3, 2010 19:20
-
-
Save Visgean/320903 to your computer and use it in GitHub Desktop.
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
#! /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