Tag: python

  • Python Relative Imports

    Python Relative Imports

    Intro I thought I understood python modules. To my embarrassment, I tried doing a relative import just now and, having researched the ensuing error, realized that I had still failed to understand some fundamentals of relative imports. Background I created the following file structure: … with the following demo code: … and tried running python3…

  • Launching Subprocesses in Python3

    Motivation It’s important in the world of IT to know a scripting language for data processing, task automation, etc. For simple tasks (e.g. moving files, starting programs), my goto scripting language is Bash. But when I need something with more tools and precision (e.g. parsing html), I use python3. I decided in recent times to…