archive
Tag: path

2015/02/16

Importing Python Scripts: Clobbering sys.argv

by 8bits0fbr@in
Categories: Coding, Python
Tags: , , , , , , , , , ,
Comments: Leave a Comment

Often, we find the need to import a non-class based Python module into our own modules. Sure, many proper Python packages exist that we can use to do our dirty work (https://docs.python.org/2/tutorial/modules.html#packages), but what about when we run into a random script that simply uses its own main() and various functions to get the job[…]


Today is Tuesday
2018/01/23