broadinstitute / gdctools

Python and UNIX CLI utilities to simplify interaction with the NIH/NCI Genomics Data Commons
Other
31 stars 4 forks source link

Cannot run tools standalone (i.e. outside of repo directory) #12

Closed noblem closed 7 years ago

noblem commented 7 years ago

On vgdac1:

% cd ~/src/gdctools % bin/gdc_ls submission [ "CCLE", "REBC", "TCGA", ... ]

works just fine, but

% cd % gdc_ls submission

fails with

... stack trace elided ...

from lib.constants import TIMESTAMP_REGEX

ImportError: No module named lib.constants

noblem commented 7 years ago

I realize we've discussed this, but have included it here as an issue to avoid falling thru the cracks. It's a bit bigger than just a bug fix, and implies a bit of a code reorg/refactor to be more like standard Python-esqu packaging directory structure.

tmdefreitas commented 7 years ago

Fixed in 5113de41b0f411d1eb550f0e846c5a7cb12e66af