Skip to content

Commit

Permalink
Add missing encode to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Mar 17, 2023
1 parent ede9ed8 commit a07a1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmipy/xmiwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def set_int(self, name: str, value: int) -> None:
def initialize(self, config_file: str = "") -> None:
if self._state == State.UNINITIALIZED:
with cd(self.working_directory):
self._execute_function(self.lib.initialize, config_file)
self._execute_function(self.lib.initialize, config_file.encode())
self._state = State.INITIALIZED
else:
raise InputError("The library is already initialized")
Expand Down

0 comments on commit a07a1b3

Please # to comment.