mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fixed header generator (typo)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user