Skip to main content

Find the user directory for IDA Pro in a platform-independent way

Project description

find_ida_user_dir determines the current user's IDA Pro user directory in a platform independent way.

To use

import find_ida_user_dir
user_dir = find_ida_user_dir.find_path()

plugins_dir = find_ida_user_dir.find_path("plugins")

find_ida_user_dir first checks for the existence of an IDAUSR environment variable: if it is present, that is returned. If not, the correct path of the default user directory as described in the IDA Pro documentation is returned. If a subdirectory name is given then the path to that subdirectory in the IDA user directory is returned.

If the find_ida_user_dir.find_path function is called from inside IDA Python then it delegates the job of finding the correct path to the ida_diskio.get_user_idadir function.

find_ida_user_dir is useful for creating installation scripts for IDA plugins which need to identify the IDA user directory so that they know where to copy the plugin module to.

This module also installs a console script called find_ida_user_dir: it can be run from a command line and prints the path returned by find_path.

Project details


Download files

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

Files for find-ida-user-dir, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size find_ida_user_dir-0.3.0-py2-none-any.whl (2.9 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size find_ida_user_dir-0.3.0.tar.gz (15.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page