Skip to content

Commit

Permalink
Merge pull request #229 from SANDAG/fix_unicode
Browse files Browse the repository at this point in the history
Fix java unicode error
  • Loading branch information
bhargavasana authored Oct 29, 2024
2 parents 8f22ea7 + 9738a46 commit b2b3eda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/python/pythonGUI/createStudyAndScenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,12 @@ def select_study_years(self):

#Update properties file
def update_property(self, old, new):
new_updated = new.replace(r'\U', r'/U').replace(r'\u', r'/u')
property_file = os.path.join(self.scenariopath.get(), 'conf', 'sandag_abm.properties')
property_file = property_file.replace('\\\\', '/')
with open(property_file, 'r') as file :
filedata = file.read()
filedata = filedata.replace(old, new)
filedata = filedata.replace(old, new_updated)
with open(property_file, 'w') as file:
file.write(filedata)

Expand Down

0 comments on commit b2b3eda

Please sign in to comment.