vendredi 1 mars 2019

need help importing a deprecated function for testing

I'm working on an open source project (inkscape) and am working on fixing a function, however, it depends on a deprecated file and a function and class therein that was never replaced.

I want to write some tests for it in its current state so I can make sure I duplicate it's functionality correctly, to prevent other breakages. As it stands the file tree is as such

-inkex

--deprecated-simple

---the file I want

-tests

--my file

deprecated contains no init, and I haven't been able to import the file I want form it as python doesn't recognize that file doesn't even exist. Is there a way to import the original file? Or does anyone recommend anything else? Thanks

Aucun commentaire:

Enregistrer un commentaire