This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check exsitence of file | |
import os | |
if not os.path.exists(file): raise ValueError('The given requirements file does not exist.') | |
# get absolute path and set it as default path prefix | |
import os | |
from functools import partial | |
here = os.path.abspath(os.path.dirname(__file__)) | |
get_path = partial(os.path.join, here) |
NewerOlder