cfe-lab / Kive

Archival and automation of bioinformatic pipelines and data
https://cfe-lab.github.io/Kive
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

samplecode_path variable appears in several test files #408

Open rhliang opened 9 years ago

rhliang commented 9 years ago

I'd like to consolidate them in a single place, either kive/tests.py or kive/testing_utils.py, but when I tried, the update_test_fixtures management command failed to run. Maybe it has to do with using a relative path?

donkirkby commented 9 years ago

I recently had to deal with something similar in the MiCall pipeline, and I just added the parent directory to PYTHONPATH when calling the code from a helper script that lives in a subdirectory. In my case, I was using the subprocess module, but you can probably do something similar with sys.path.