Created
December 22, 2017 00:53
-
-
Save ahmednooor/55969d8aeb806615fd1d3c22a767b32b to your computer and use it in GitHub Desktop.
get_current_directory_absolute_path_python
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
# configure root directory path relative to this file | |
THIS_FOLDER_G = "" | |
if getattr(sys, "frozen", False): | |
# frozen | |
THIS_FOLDER_G = os.path.dirname(sys.executable) | |
else: | |
# unfrozen | |
THIS_FOLDER_G = os.path.dirname(os.path.realpath(__file__)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment