Module Error handling with Python

Module Error handling with Python

I wrote a script with python to automate some things with JIRA and I used the module Requests: #!/usr/bin/python # m.ortiz # Requiere modulo requests: http://docs.python-requests.org/en/latest/ # Documentacion de este script:FIXME # modulos import sys,requests The...
Download JIRA attachments with Python

Download JIRA attachments with Python

I’m working in some automation and one of the things I needed to solve was a script to download JIRA attachments with Python, here’s how I did it. Using the REST API of JIRA and some python modules: We start defining the she-bang, author, modules and...
Inherit shell environment in python for bash subshell

Inherit shell environment in python for bash subshell

While executing a bash subshell inside a Python script I had to inherit the environment variables, that can be done in this way: Bashrc $ cat ~/.bashrc |grep LOLO export LOLO=»/foo/bar» *Here you need to restart your shell in order to execute .bashrc and export the...