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 path to custom fixers for python migration #11155

Merged
merged 2 commits into from
Sep 30, 2020

Conversation

aparajit-pratap
Copy link
Contributor

@aparajit-pratap aparajit-pratap commented Sep 29, 2020

Purpose

Fixes issue with python migration assistant not working for host environments.
See slack thread: https://autodesk.slack.com/archives/C0W60575Z/p1600674768017200

Manually tested in Revit.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@DynamoDS/dynamo

FYIs

@Amoursol
@QilongTang

@aparajit-pratap aparajit-pratap changed the title fix path to custom fixers for python migration Fix path to custom fixers for python migration Sep 29, 2020
@@ -64,6 +64,7 @@ Dynamo.sln.DotSettings
*.sdf
*.backup
*.pdf
*.dgml
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, what is this exception here for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was experimenting with the new IntelliTrace feature in VS 2019. This file is generated using that tool, I thought it would be good to exclude it as it's generated by VS.

using (PyScope scope = Py.CreateScope())
{
scope.Set(INPUT_NAME, code.ToPython());
scope.Exec(Get2To3MigrationScript());

var path = Path.GetDirectoryName(asm.Location);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@aparajit-pratap aparajit-pratap merged commit 4314bdf into DynamoDS:master Sep 30, 2020
@aparajit-pratap aparajit-pratap deleted the python_migration branch September 30, 2020 03:00
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