Fixed header generator (typo)

This commit is contained in:
Ian Bell
2014-05-17 22:37:59 +02:00
parent 7e34a8550a
commit 18759d1b13

View File

@@ -12,7 +12,7 @@ import sys
def version_to_file(root_dir):
print('*** Generating cpversion.h ***')
# Get the version from the version.txt file
version = open(os.path.join(root_dir,'cpversion.txt'),'r').read().strip()
version = open(os.path.join(root_dir,'version.txt'),'r').read().strip()
# Format the string to be written
string_for_file = '//Generated by the generate_headers.py script on {t:s}\n\nstatic char version [] ="{v:s}";'.format(t = str(datetime.now()),v = version)
@@ -21,7 +21,7 @@ def version_to_file(root_dir):
include_dir = os.path.join(root_dir,'include')
# The name of the file to be written into
file_name = os.path.join(include_dir,'version.h')
file_name = os.path.join(include_dir,'cpversion.h')
# Write to file
f = open(file_name,'w')