Skip to content

Move default.py into its own file - #312

Merged
jonorthwash merged 4 commits into
apertium:masterfrom
Androbin:default
Jan 4, 2018
Merged

jonorthwash merged 4 commits into
apertium:masterfrom
Androbin:default

Conversation

@Androbin

@Androbin Androbin commented Jan 2, 2018 •

Copy link
Copy Markdown
Collaborator

Fixes #311

Comment thread phenny Outdated
"""), file=f)
f.close()
def create_default_config(fn):
os.system('cp {:} {:}'.format(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cp might not always be available on the system.

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.

Good point. Let's go for a more verbose version.

@shardulc

shardulc commented Jan 3, 2018

Copy link
Copy Markdown
Member

Looks good to me. My only concern is that there are two default.pys: one in the bot's directory, and one in ~/.phenny. No matter what message we give users, it is confusing which file to edit if you want to see changes in your bot. I think calling it default_template.py would do; do you have any ideas?

@Androbin

Androbin commented Jan 3, 2018

Copy link
Copy Markdown
Collaborator Author

I would rather call it default.example.py or default.py.example.
Just like apertium-html-tools/config.conf.example

@shardulc

shardulc commented Jan 3, 2018

Copy link
Copy Markdown
Member

default.py.example seems better.

@shardulc

shardulc commented Jan 3, 2018

Copy link
Copy Markdown
Member

Looks good to me. However I feel like we should wait for @jonorthwash on this.

@jonorthwash

Copy link
Copy Markdown
Member

Agreed!

@jonorthwash
jonorthwash merged commit 9fa99b4 into apertium:master Jan 4, 2018
@Androbin
Androbin deleted the default branch January 4, 2018 12:14
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.

3 participants