Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use UNIX path #32

Merged
merged 1 commit into from
Aug 8, 2019
Merged

fix: use UNIX path #32

merged 1 commit into from
Aug 8, 2019

Conversation

rouille
Copy link
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
@@ -120,6 +121,8 @@ def _upload_change_table(self):
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
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
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
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
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