0

i have to set my variable

maya_env_variable = "PYTHONPATH"

after i have to set a new path

new_path_list ['User/Desktop']

i have to get the current value of my PYTHONPATH using os.environ['PYTHONPATH']

current_path_string = os.environ ['PYTHONPATH']

If you're in windows , use ; to separate the paths Elif you're in mac or linux , use : to separate the paths

current_path_list = current_path_string.split()

i've done until here but now i have to go through each path in my new path list and check if the that path is already in my current path list... If it is not, add it to the current_path_list ,,, this the part i really don't understand

user2375723
  • 23
  • 4
  • 7

0 Answers0