Simple package reloader for Maya, Unreal, or other DCCs.
Project description
Python package reloader
Taken from Aleksandar Kocić's website. It unloads any specified python packages currently imported in Maya, Unreal Engine, or another DCC, and allows for a clean reimport.
As he notes, this should only be used in development, and should not be used in production code or tools.
Installation
Installing with pip
pip install unload_packages
Manual installation
Download the latest version from the releases page and extract the unload_packages folder to your Maya scripts directory. (e.g. C:\Users\username\Documents\maya\scripts)
Usage
In the Maya script editor, add this code to the top of your script:
from unload_packages import unload
unload(["my_package", "my_other_package"])
import my_package
import my_other_package
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unload_packages-0.1.0.tar.gz.
File metadata
- Download URL: unload_packages-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0f9d25b52c494c2374f6068615168cf95302ac4ec7aa43665ba0cf8ed0a0ac6
|
|
| MD5 |
c68f1b1a437d1facb33991e97a796445
|
|
| BLAKE2b-256 |
9b67f1019ed7bd4b0043abe162be8407c9c9469fa01d6fa03333933d123efb77
|
File details
Details for the file unload_packages-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unload_packages-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9991179bd5708fa6bc93a2754021b0b6a6618eea417e40b9d3ca0726d16d0d7b
|
|
| MD5 |
af54a7fab219e93621eacd2197db3246
|
|
| BLAKE2b-256 |
2c87de03fa0d7bfbb448a74c8723dcbeaedd82e3eecee7adbd1aeda17fc348fb
|