Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Hey! Directory Localizer

Project Description

Directory Localizer helps you localize directories.


Periodically, you’ll want to know where a Python source file is actually located on disk. You might want this for all sorts of reasons, and it’s always a bit messy when you do want to know.

DirectoryLocalizer solves two problems:

  1. it lets you know where you are on disk, assuming you’re not anywhere crazy, like in a zip import, and
  2. it lets you pass that location to other code that might want to know where you are.

Usage is extremely simple:

  1. Make a DirectoryLocalizer object, dl (or whatever).
  2. Call dl.set() from the file you want to locate on disk.
  3. Any code that can access dl can now call:
    • dl.dir(): for the directory of the file where dl.set() was called,
    • dl.path(fn): for the filename of a file in the directory where dl.set() was called,
    • dl.file(fn): for a file object of the file in dl.path(fn), and
    • to get a read of the file in d.file(fn).
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hey_dl-1.0.1.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Mar 10, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting