Commit a5c95e26 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

nabu.utils: add is_writeable

parent 6875dcd9
......@@ -65,6 +65,10 @@ def get_resource_file(filename, subfolder=None):
return os.path.join(abspath, filename)
def is_writeable(fname):
return os.access(location, os.W_OK)
def _sizeof(Type):
return the size (in bytes) of a scalar type, like the C behavior
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment