- package: tis-add-pycharm-community-right-click
- name: Add Pycharm Community in right click context menu
- version: 1-4
- categories: System,Utilities
- maintainer: WAPT Team,Tranquil IT,Flavien SCHELFAUT
- licence: proprietary_free
- locale: all
- target_os: windows
- architecture: x64
- signature_date:
- size: 6.38 Ko
- depends:
package : tis-add-pycharm-community-right-click
version : 1-4
architecture : x64
section : base
priority : optional
name : Add Pycharm Community in right click context menu
categories : System,Utilities
maintainer : WAPT Team,Tranquil IT,Flavien SCHELFAUT
description : Add 'Open with Pycharm Community' to the Windows right-click context menu
depends : tis-pycharm-community
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.5
sources :
installed_size :
impacted_process :
description_fr : Ajout de l'option 'Open with Pycharm Community' au clic droit de Windows
description_pl : Dodano opcję „Otwórz za pomocą Pycharm Community” do menu prawego przycisku myszy systemu Windows.
description_de : Hinzufügen der Option 'Open with Pycharm Community' zum Rechtsklick in Windows
description_es : Se ha añadido la opción «Abrir con Pycharm Community» al menú contextual de Windows.
description_pt : Adicionada a opção “Abrir com a Comunidade Pycharm” ao menu do botão direito do rato do Windows
description_it : Aggiunta l'opzione “Apri con Pycharm Community” al menu del tasto destro del mouse di Windows.
description_nl : De optie 'Openen met Pycharm Community' toegevoegd aan het rechtsklikmenu van Windows
description_ru : В меню правой кнопки мыши Windows добавлена опция «Открыть с помощью Pycharm Community».
audit_schedule :
editor :
keywords :
licence : proprietary_free
homepage :
package_uuid : ab54048d-c001-4a6c-b2de-f81fff2b190f
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-06-09T08:00:13.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : Y1MiGOYxO8O/i4rgxgS9rhOiATn/WW73qM2g3VNkeGBS21yvWNcb1CX2fMpKFHTTLxFgPZc0sb2aPF9AucFCVo9jPPZajtTLpGmF03cQPHBoMDYZqBYOv9o6bidG7hzO5EYw/dQapvhTSeLLOCbsT4sGfIttuYk7vQAj76scsiQkbF+mAM+bXtf/VtzcodHF/J2Ihpr4x4kQIlqPQ9Ycypx/KsS34ApMON4OeVuUYzQhYZ23xHyxeQ3T7KW1GtXWta8ZhOdVTbphO2RAmW/j6zlSIfPtSkvYM3BBImaZ5YFIhbXraCQkz0UHb4cWayAqrX/5j/MfqzW4cya/ToBmNg==
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
def install():
install_location_pycharm_community = sorted(installed_softwares('PyCharm Community Edition'), key=lambda x: Version(x["name"].split(" ")[-1]), reverse=True)[0]['install_location']
bin_name_path_pycharm_cummunity = makepath(install_location_pycharm_community, 'bin', 'pycharm64.exe')
print("Adding Pycharm Community to the right click menu")
registry_set(HKEY_CLASSES_ROOT, r'*\shell\Open with PyCharm', '', 'Edit with PyCharm', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'*\shell\Open with PyCharm', 'Icon', f'"{bin_name_path_pycharm_cummunity}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'*\shell\Open with PyCharm\command', '', f'"{bin_name_path_pycharm_cummunity}" "%1"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\PyCharm', '', 'Open Folder as PyCharm Project', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\PyCharm', 'Icon', f'"{bin_name_path_pycharm_cummunity}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\PyCharm\command', '', f'"{bin_name_path_pycharm_cummunity}" "%V"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\PyCharm', '', 'Open Folder as PyCharm Project', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\PyCharm', 'Icon', f'"{bin_name_path_pycharm_cummunity}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\PyCharm\command', '', f'"{bin_name_path_pycharm_cummunity}" "%V"', REG_EXPAND_SZ)
def uninstall():
print("Removing Pycharm Community to the right click menu")
pycharm_community_registry_entries = [
(HKEY_CLASSES_ROOT, r'*\shell', 'Open with PyCharm'),
(HKEY_CLASSES_ROOT, r'Directory\Background\shell', 'PyCharm'),
(HKEY_CLASSES_ROOT, r'Directory\shell', 'PyCharm')
]
for root_key, subkey_path, key_name in pycharm_community_registry_entries:
full_path = f"{subkey_path}\\{key_name}"
if reg_key_exists(root_key, full_path):
registry_deletekey(root_key, subkey_path, key_name, recursive=True)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a9e2ef40eff97dfe142f7f2226ff2657cc2c2e8cc1d91cb599e61da050454d21 : WAPT/control
7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2 : WAPT/icon.png
b48e2dac1b3676437234df5191b94ccf5af15776a96246b1d449c75756096d6c : luti.json
85bd83839c99d99f5adf876cdea6814094eedc59fbf7e6acd6bb1719f2619446 : setup.py