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

Using sumatra with python -m (without main file) #380

Open
chithangduong opened this issue May 22, 2018 · 1 comment
Open

Using sumatra with python -m (without main file) #380

chithangduong opened this issue May 22, 2018 · 1 comment

Comments

@chithangduong
Copy link

I'm trying to use sumatra to run this example command:
python -m some.module --param1 10

I have created a default.param file with the following content:
m = some.module
param1 = 10

However, when I tried to run with smt run default.param, sumatra required a main file.
Is it possible to run sumatra without a main file using python -m?

I could have written a main file but it would break a lot of things in my project.

@apdavison
Copy link
Contributor

I think at the moment Sumatra expects a main file when running Python. I will take a look at your use case as soon as I have some time.

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

2 participants