diff options
Diffstat (limited to 'scene/resources/default_theme/make_header.py')
-rwxr-xr-x | scene/resources/default_theme/make_header.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scene/resources/default_theme/make_header.py b/scene/resources/default_theme/make_header.py index 73b1ae0b0b..cf0ccf1c3a 100755 --- a/scene/resources/default_theme/make_header.py +++ b/scene/resources/default_theme/make_header.py @@ -1,11 +1,14 @@ #!/usr/bin/env python -import os import glob -import string +import os enc = "utf-8" +# Change to the directory where the script is located, +# so that the script can be run from any location +os.chdir(os.path.dirname(os.path.realpath(__file__))) + # Generate include files f = open("theme_data.h", "wb") |