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

Run command uses first configured "Main" script #19

Open
ebresie opened this issue Jun 4, 2022 · 2 comments
Open

Run command uses first configured "Main" script #19

ebresie opened this issue Jun 4, 2022 · 2 comments

Comments

@ebresie
Copy link
Owner

ebresie commented Jun 4, 2022

When attempting to run, it allows selection of the "main script" when not configured initially. After subsequent run even when in a different script it continues to use the original selected project main script.

@ebresie
Copy link
Owner Author

ebresie commented Jun 4, 2022

There is PythonProjectProperties which includes the "main.file" and a "mainModule" which may set similar attributes.

The RunCommand findMainFile may also be confuse things some being run multiple time.

There could also be a scope issue as the "script" is present in one context but not in another context.

@ebresie
Copy link
Owner Author

ebresie commented Jun 5, 2022

Believe the information is stored in

nbproject\project.properties file present which seems to be read each time.

In my development/source folder, the folder is at the main level; in deployed case, it doesn't appear to be present which may cause some of the problems.

In cases where it does not exist, need to create a version of the file which can then be used to store project specific files.

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

No branches or pull requests

1 participant