python / cpython

The Python programming language
https://www.python.org
Other
62.94k stars 30.14k forks source link

Put IDE scripts in ~/Library #36865

Closed jackjansen closed 21 years ago

jackjansen commented 22 years ago
BPO 578667
Nosy @jackjansen
Files
  • idemain.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = None closed_at = created_at = labels = ['OS-mac'] title = 'Put IDE scripts in ~/Library' updated_at = user = 'https://github.com/jackjansen' ``` bugs.python.org fields: ```python activity = actor = 'jvr' assignee = 'jvr' closed = True closed_date = None closer = None components = ['macOS'] creation = creator = 'jackjansen' dependencies = [] files = ['4412'] hgrepos = [] issue_num = 578667 keywords = ['patch'] message_count = 4.0 messages = ['40519', '40520', '40521', '40522'] nosy_count = 2.0 nosy_names = ['jackjansen', 'jvr'] pr_nums = [] priority = 'normal' resolution = 'wont fix' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue578667' versions = [] ```

    jackjansen commented 22 years ago

    Just, here's a patch that was part of a larger set and this one was unrelated to the rest(unfortunately I've forgotten who sent it). The patch moves the IDE scripts folder to \~/Library when running on OSX.

    This is a good idea, because it allows people to have their own private set of IDE scripts, even if a sysadmin has installed Python. But: the patch as-is is probably not good enough, as there is no place for system-wide scripts anymore. (Scripts will also be shared between MacPython IDE and MachoPython IDE, which is also nice)

    You may want to look at providing two scripts folders, one in the normal location (i.e. somewhere in the Python tree) and one in \~/Library.

    0aa1c2b5-8e64-4988-b25b-7db15cdc7c29 commented 22 years ago

    Logged In: YES user_id=92689

    It was Tony Lownds. I'm all for the intentions of the patch, but I see it will fail on MacPython, which doesn't support os.environ["HOME"]. But I guess that statement could simply be replaced by the appropriate FindFolder() call.

    jackjansen commented 21 years ago

    Logged In: YES user_id=45365

    Just, shouldn't this be closed?

    0aa1c2b5-8e64-4988-b25b-7db15cdc7c29 commented 21 years ago

    Logged In: YES user_id=92689

    I guess -- it's not realistic that I'll look into this anytime soon.