Last active
August 18, 2017 07:27
-
-
Save frankchen0130/881dfe6a8b7543f2fad92f95112069e1 to your computer and use it in GitHub Desktop.
A way to add local directory files, prevent error when import module from other places.
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
_get_module_path = lambda path: os.path.normpath(os.path.join(os.getcwd(), | |
os.path.dirname(__file__), path)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment