Skip to main content

Posts

Showing posts from March, 2018

Dynamic Python script loading

I have a bunch of toys and tools in a Git repository - I affectionately call this my toys repo . Most are just scripts that I use from a Unix (Cygwin or Git bash on Windoze) command line but there are some Python classes that I sometimes use in another script. Today at work, I was coming up with a new Python script that made use of a couple of my public classes. The script is good enough to share with my colleagues but I'm faced with the problem of my public classes: I imagine that most of my colleagues haven't even heard of my public classes and I don't expect them to download the entire repo just to get a couple of classes If I'm going to distribute the classes as separate files I introduce new problems: It could be confusing to have the files tag along. What is the user supposed to do with them? The answer is nothing - they should leave them alone and make sure they are in the same directory as the main script in case they decide to move th...

It's been a while!

I haven't posted anything here in quite a while! From 1984-2009, I worked at IBM From 2010-2012, I was taking classes at a community college to brush up on technologies From 2012-2016, I worked at Teradata From 2016-2017, I worked as a contractor back at IBM Starting in 2018, I was working as a contractor at Cisco One of the reasons I wanted to post here is that I was doing something at work with Python I wanted to share through a blog or something. I was trying to find one a site that kind of catered to Python or tech blogs from various authors but couldn't find one. Maybe I'll keep looking but I guess I'll try doing it here.