Random Project

Small bug

Thanks, very useful script.

I have has a small problem with it on older Linux systems. in the SRCDIR definition:

os.path.dirname() does not return a full path if sys.argv[0] doesn’t contain one, which result in an error. (This is the case on some systems, like older versions of CentOS).

replacing it with the following:

SRCDIR = os.path.abspath(os.path.dirname(sys.argv[0]))

would solv the problem and be more robust.

Regards