Skip to main content

__import__ with a directory name to use to root import

Project description

A reduced Python __import__() function where one must give a directory for which to start searching from.

As per __import__() sans “from lists” which is used here, we always return the top-level import name even when a compound import (e.g. a.b.c) is given.

Sorry, we don’t do “from lists”, global or local variables here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

import_relative-0.1.0.zip (11.0 kB view hashes)

Uploaded Source

Built Distributions

import_relative-0.1.0-py2.7.egg (6.8 kB view hashes)

Uploaded Source

import_relative-0.1.0-py2.6.egg (6.8 kB view hashes)

Uploaded Source

import_relative-0.1.0-py2.5.egg (6.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page