-
-
Notifications
You must be signed in to change notification settings - Fork 1
Shortcut Windows
Tip: As of
moleditpy-installerv3.0, runningmoleditpy-installer(ormoleditpy-installer --no-tui) does all of the following automatically — Start Menu shortcut, optional Desktop shortcut (--desktop), and the.pmeprjfile association with its own icon — with no registry editing required. See Installation for Windows. The manual steps below are for setting things up by hand (e.g. custom shortcut placement, or if you installed with plainpip install moleditpyand skipped the installer).
This document explains how to associate files with a specific extension (.pmeprj) with a Python application (moleditpy.exe) so they can be opened by double-clicking, and how to set the icon to be used.
| Item | Details |
|---|---|
| Executable File | C:\Users\%USERNAME%\AppData\Local\Programs\Python\PythonXX\Scripts\moleditpy.exe |
| File Extension | .pmeprj |
Replacing Placeholders:
- Replace
%USERNAME%with your Windows username.- Replace
PythonXXwith your installed Python version directory (e.g.,Python313orPython311).
Specify the following icon file for file associations and shortcuts.
| Item | Details |
|---|---|
| Icon File Path | C:\Users\%USERNAME%\AppData\Local\Programs\Python\PythonXX\Lib\site-packages\moleditpy\assets\icon.ico |
To open .pmeprj files with moleditpy.exe by double-clicking, follow these steps to associate the file type.
In File Explorer, right-click a file with the extension you want to associate (e.g., sample.pmeprj).
- Select "Properties" from the context menu.
- In the "General" tab, next to "Opens with:", click the "Change..." button.
- When the "How do you want to open this file?" window appears, select "More apps" → "Look for another app on this PC".
- Navigate to and select
moleditpy.exeusing the following path (with placeholders replaced):C:\Users\%USERNAME%\AppData\Local\Programs\Python\PythonXX\Scripts\moleditpy.exe - Click "Open".
Applying a custom icon to a system-wide file association typically requires editing the registry. Registry editing is an advanced task and should be done with caution.
These are the steps to create an application shortcut and set its icon.
- Right-click on any empty area, such as the Desktop.
- Select "New" → "Shortcut".
- In the "Type the location of the item:" field, enter the following path (with placeholders replaced):
C:\Users\%USERNAME%\AppData\Local\Programs\Python\PythonXX\Scripts\moleditpy.exe - Click "Next".
Give the shortcut a name (e.g., MoleditPy) and click "Finish".
- Right-click the newly created shortcut and select "Properties".
- In the "Shortcut" tab, click the "Change Icon..." button.
- Browse to and select the
icon.icofile from the following path:C:\Users\%USERNAME%\AppData\Local\Programs\Python\PythonXX\Lib\site-packages\moleditpy\assets\icon.ico - Click "OK", then "Apply", and finally "OK" to finish.
Shortcuts for the Windows Start Menu are stored in specific hidden folders. To add your application shortcut to the Start Menu's program list, copy or move it to one of the following folders.
Enter one of the following paths into the File Explorer address bar and press Enter.
Placing the shortcut here will make it appear only in the Start Menu for the currently logged-in user.
%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs
Placing the shortcut here will make it appear in the Start Menu for all users on the PC.
%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs
- Arrange the windows so you can see both the Start Menu folder (opened in Step 1) and the location of your created shortcut (e.g., the
moleditpyshortcut on your Desktop). - Drag and drop the shortcut into the Start Menu folder window to move it, or hold down the
Ctrlkey while dragging to copy it.
Click the Start button and check that the shortcut with the name you provided (e.g., MoleditPy) has been added to the program list.
You have now completed the process, from creating a desktop shortcut to placing it in the Start Menu.
-
Installation for Windows — the
moleditpy-installerroute that automates all of this - Shortcut for macOS / Linux
- Keyboard Shortcuts