Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.
Project description
mcpath
Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders, launchers, executables and java runtime.
Installation
Install the module with pip:
pip3 install mcpath
Update existing installation: pip3 install mcpath --upgrade
Supported Platforms
| Java | Bedrock | Preview/Beta | Education | |
|---|---|---|---|---|
| Android [1] | ❌ | ✅ | ❌ | ❌ |
| Darwin | ✅ [3] | ❌ | ❌ | ❌ |
| iOS [2] | ❌ | ✅ | ✅ | ✅ |
| Linux | ✅ | ✅ [4] | ❌ | ❌ |
| Windows | ✅ | ✅ | ✅ | ✅ |
- With Pydroid 3
- With Pyto
- Has not been tested.
- With mcpelauncher.
Requirements
| Name | Usage |
|---|---|
requests |
Get runtime component and version using Mojang's API |
requests-cache |
For caching version data. |
Examples
Saves
import mcpath
print(mcpath.java.get_saves_dir())
# C:\Users\USER\AppData\Roaming\.minecraft\saves
.minecraft
import mcpath
print(mcpath.java.get_root_dir())
# C:\Users\USER\AppData\Roaming\.minecraft
Game
import mcpath
print(mcpath.java.get_game_dir())
# D:\minecraft
Java Runtime Executable
import mcpath
print(mcpath.java.get_runtime('1.21.3'))
# C:\Users\USER\AppData\Local\Packages\Microsoft.4297127D64EC6_8wekyb3d8bbwe\LocalCache\Local\runtime\java-runtime-delta\windows-x64\java-runtime-delta\bin\java.exe
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
mcpath-2.1.1.tar.gz
(16.5 kB
view details)
File details
Details for the file mcpath-2.1.1.tar.gz.
File metadata
- Download URL: mcpath-2.1.1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b159cfd4e6846bd82923c88223c0bbb4ac67c960de92965111f59007fa61a14
|
|
| MD5 |
bab4462ae41ee04fc9b87f2ca6371530
|
|
| BLAKE2b-256 |
64898b794ea8f111eea799dbbe52001be338ae7241fe4b147bc0ad5ff299f44f
|