Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1064885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:43:56+00:00 2026-05-16T19:43:56+00:00

I am writing a python/pygtk application that is adding some custom scripts (bash) in

  • 0

I am writing a python/pygtk application that is adding some custom scripts (bash) in a certain folder in $HOME (eg. ~/.custom_scripts).

I want to make that folder available in $PATH. So every time the python app is adding the script, that script could be instantly available when the user is opening a terminal (eg. gnome-terminal).

Where do you suggest to “inject” that $PATH dependecy ? .bashrc, /etc/profile.d, etc. ?
What advantages / disadvantages I might encounter ?

For example if i add a script to export the new path in /etc/profile.d, the path is not being updated until I re-login.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T19:43:57+00:00Added an answer on May 16, 2026 at 7:43 pm

    ~/.bashrc is read every time gnome-terminal is opened, (assuming the user has SHELL set to /bin/bash).

    Be sure to check os.environ[‘PATH’] to see if the directory has already been added, so that the script doesn’t add it more than once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Math application which can be extended by writing python scripts.
I am writing a python script that will be doing some processing on text
I'm writing some python code that's supposed to parse a CSV file. Calculate the
I'm writing a Python app that needs to call some Git commands. I first
I'm currently writing a PyGTK application and I'd like some advice as to the
I've been writing python scripts that run locally. I would now like to offer
I'm writing a Python application that takes a command as an argument, for example:
I am writing python scripts and execute them in a Makefile. The python script
I'm using Eclipse for writing Python, and I want to be able to easily
I am a PHP programmer, and want to get into writing Python GUI apps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.