Skip to content
This repository was archived by the owner on Feb 18, 2019. It is now read-only.
This repository was archived by the owner on Feb 18, 2019. It is now read-only.

ximport is really silly and shouldn't be used #14

@k0s

Description

@k0s

https://github.com/mozilla/mozcommitbuilder/blob/master/mozcommitbuilder/ximport.py

All this does is import a module from a path. Well, this is easy to do in python:

import imp

def load_module(path):
filename = os.path.split(path)[-1]
module = filename.rsplit('.', 1)[0]
return imp.load_source(module, path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions