bobf is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bobf / bpython http://bpython-interpreter.org/

Fancy curses interface to the Python interpreter

Clone this repository (size: 838.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/bobf/bpython
hg clone ssh://hg@bitbucket.org/bobf/bpython

Issues

#17 Create ~/.bpython.ini on install ?

Reported by bobf

Not sure if this is definitely a great idea or not, but I think if:

  • There's no /.bpythonrc
  • There's no /.bpython.ini

then create a /.bpython.ini by copying the sample.ini to the home dir.

I'm not really a fan of configuring install scripts so if anyone knows how to do this easily please do ! :)

Also if you think this is a bad idea, let me know that too.

Status: open Responsible: Simon de Vlieger Type: proposal Priority: major
Milestone: none Component: none Version: none

Attachments

Comments and changes

  1. #1 bobf

    written

    • Changed type from bug to proposal.
  2. #2 Simon de Vlieger

    written

    Let’s do this with the /.bpython/ directory scheme. On install or on first run?

  3. #3 Simon de Vlieger

    written

    • Changed status from new to open.
  4. #4 Wraithan

    written

    One concern I'd have with trying to copy the example config file to /.bpython/ or whichever scheme is that some distros don't install the example config or it may be in a different location.

    Also, I don't see how you could reliably create /.bpython/ at install time with Archlinux. How do you determine which users are real users and which ones are users for services. It should definitely be a first run thing.

  5. #5 Steve Milner

    written

    I agree. Do it on first run.

    1. Check for /.bpython/
    2. If it doesn't exist, make the directory and possibly a default config file
    3. use the data and move forward as normal
  6. #6 Simon de Vlieger

    written

    Then I know bob_f probably wants a zsh-like wizard to set it up. I believe you mentioned that once dear chap?

  7. #7 bobf

    written

    Steve Milner's suggestion sounds good.

  8. #8 anatoly techtonik

    written

    What is this config file for in the first place?

  9. #9 Andreas Stührk

    written

    Anatoly, are you asking why the config file should be created or why we have a config file at all? If it's about the latter, then the answer is that we have it for the obvious reason: people can use it to configure things. See http://docs.bpython-interpreter.org/configuration.html

  10. #10 Sebastian Ramacher

    written

    Instead of installing a default config I'd rather extend bpython-config.5. We could generate the manpage from the existing documentation with rst2man. We could also show an example in the config file and point out where a config file with the default config can be found.

  11. #11 Simon de Vlieger

    written

    • Changed responsible from nobody to ikanobori.

    Sebastian, would the documentation need to be updated to be compatible with rst2man?

  12. #12 Sebastian Ramacher

    written

    I've just run rst2man on configuration.rst. The output is attached.

    rst2man doesn't know about ref and versionadd. We'd need to fix that and add a SYNOPOSIS section and add some metadata. But that's it.

    The top of [1] contains an example of the metadata and SYNOPOSIS.

    [1] http://git.pwmt.org/?p=zathura.git;a=blob;f=zathurarc.5.rst;h=7a882b264a42ac30501fd3ee3e6a1653654b15cd;hb=refs/heads/develop

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?