tis-waptdev

15
Useful tools to develop WAPT packages (IDE, zip). Associate psproj files to waptpyscripter.bat
3076 downloads
Download

  Description 

  • package : tis-waptdev
  • version : 15
  • architecture : all
  • categories :
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • description : Useful tools to develop WAPT packages (IDE, zip). Associate psproj files to waptpyscripter.bat
  • locale :
  • target_os :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources : https://srvdev.tranquilit.local/sources/tis-waptdev-wapt/trunk/
  • installed_size :
  • impacted_process :
  • description_fr : Outils utiles pour d√©velopper les paquets WAPT (EDI, zip). Associe les psproj √† waptpyscripter.bat
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T15:13:46.872517
  • Depends :

  Setup.py 

#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    create_programs_menu_shortcut('Pyscripter-Python WAPT',target = makepath(WAPT.wapt_base_dir,'waptpyscripter.bat'))
    try:
        waptpython = run('netsh advfirewall firewall show rule name="wapt-python"')
    except CalledProcessError as e:
        print('Open firewall for wapt-python')
        run('netsh advfirewall firewall add rule name="wapt-python" dir=in action=allow program="%s" enable=yes' % makepath(WAPT.wapt_base_dir,'python.exe'))

    try:
        run('netsh advfirewall firewall show rule name="python"')
    except CalledProcessError as e:
        print('Open firewall for wapt-scripts-python')
        run('netsh advfirewall firewall add rule name="python" dir=in action=allow program="%s" enable=yes' % makepath(WAPT.wapt_base_dir,'scripts','python.exe'))

def uninstall():
    remove_programs_menu_shortcut('Pyscripter-Python WAPT')
    print('Remove firewall rule')
    run('netsh advfirewall firewall delete rule name="wapt-python"')
    run('netsh advfirewall firewall delete rule name="python"')

										

  Changelog 


25/04/2018: removed the sessionsetup with addsitedir which rends to add path sys.path with virtualenv
Add shortcut in Startup menu
  manifest.sha256 
[["setup.py","a9e2cc6a2d78fb5d10f200d62d65bfd67e54c23a696c17714a5f56e7778925ea"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","0c1f41d37b659d44815d19f399b010254167892b2e52a2b8dbbfbe9caac4534a"],["WAPT/control","71cf86f0c5b0367c4d023a16c4d8fba51a965a55856c255869c317386792f4e2"],["WAPT/changelog.txt","d8450b8366c26fa721408821a176b279ba81be789c6367326570f29a17edfce0"]]