Skip to main content

detect which app the python interpreter is running in

Project description

detect-app

PyPI Downloads

Detect which app the python interpreter is running in. Usefull for cross app scripts

Supports:

Ansible
AutoCAD
Blender
Calibre
Cinema 4D
Clarisse
Flame
Fusion
Gaffer
Gimp
Houdini
Inkscape
Katana
Krita
Mari
Marmoset
3ds Max
Maya
Modo
MotionBuilder
Natron
Nuke
RV
Revit
Shotgun
Scribus
Softimage
SubstanceDesigner
SubstancePainter
Unreal

Instructions

e.g. if run in Blender, will print Blender

import detect_app
app_info = detect_app.detect_app()
print(app_info.id)

right now app_info is very simple

  • id: str a unique identifier for the app, lowercase, underscores, not start with nr
  • action: callable that returns true if run in the app. usually just attempts to import an app specific module
  • get_name(): method to return a pretty name.

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

detect-app-0.0.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

detect_app-0.0.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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