Skip to content

fix: use UNIX path#32

Merged
rouille merged 1 commit intodevelopfrom
windows_compatible
Aug 8, 2019
Merged

fix: use UNIX path#32
rouille merged 1 commit intodevelopfrom
windows_compatible

Conversation

@rouille
Copy link
Copy Markdown
Collaborator

@rouille rouille commented Aug 7, 2019

Set path to POSIX pathname every time a UNIX command is called from local machine to run on server. This should resolve the issue users having a Windows OS encounters when communicating with the server (Linux OS).

@rouille rouille requested a review from kasparm August 7, 2019 21:49
@rouille rouille self-assigned this Aug 7, 2019
print("--> Uploading change table to server")
file_name = self._scenario_info['id'] + '_ct.pkl'
upload(self._ssh, file_name, const.LOCAL_DIR, const.INPUT_DIR)
print("--> Deleting change table on local machine")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an additional fix?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not a fix. It deletes the change table after uploading all the scenario data inputs to the server. The fix was to delete the scaled profile from the local machine. Deleting the change table is not necessary but it is cleaner since the other inputs are deleted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. So that is an additional change not related to the OS specific path issue.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I did not feel like creating a new PR for this one line of code.

@kasparm kasparm self-requested a review August 7, 2019 23:20
@rouille rouille merged commit 440d7d4 into develop Aug 8, 2019
@rouille rouille deleted the windows_compatible branch August 8, 2019 20:53
@ahurli ahurli mentioned this pull request Mar 11, 2021
@rouille rouille changed the title fix: Use UNIX path fix: use UNIX path Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants