Python Forum
setting evironment of Linux using python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting evironment of Linux using python
#3
hi, I am trying it in python in this way

# set the test Environment
SAM_HOME = "/opt/test"


if os.path.exists("~sam/bin/test"):
SAM_HOME = "~sam"
os.system(". " + SAM_HOME + "/bin/test")
os.system(". " + SAM_HOME + "/bin/session")
Reply


Messages In This Thread
RE: setting evironment of Linux using python - by kgkhan - Dec-06-2016, 02:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] [Linux] Run Python script through cron? Winfried 2 1,421 Oct-19-2024, 06:29 PM
Last Post: Winfried
  Trouble Setting Up Selenium with FireFox (Python 3 on Windows 10)) gw1500se 5 7,400 Oct-07-2024, 06:41 PM
Last Post: AlluminumFoil
  Linux, Python, C ++, Brain2 and errors. PiotrBujakowski 0 1,095 Jun-24-2024, 03:41 PM
Last Post: PiotrBujakowski
  Is possible to run the python command to call python script on linux? cuten222 6 2,640 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  A question about setting up Python JanOlvegg 1 1,225 Feb-20-2023, 10:21 PM
Last Post: deanhystad
  Setting up new Python kernel for JupyterLab Desktop on M1 Mac daler6 0 2,006 Jun-20-2022, 03:45 AM
Last Post: daler6
  How to use a variable in linux command in python code? ilknurg 2 2,542 Mar-14-2022, 07:21 AM
Last Post: ndc85430
  Python syntax in Linux St0rmcr0w 2 66,452 Jul-29-2021, 01:40 PM
Last Post: snippsat
  Login to NordVPN on Linux with python script AGreenPig 2 7,819 Feb-09-2021, 10:44 AM
Last Post: AGreenPig
  how to run linux command with multi pipes by python !! evilcode1 2 9,273 Jan-25-2021, 11:19 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020