How do I set paths in Python?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexcole
    New Member
    • Mar 2007
    • 31

    #1

    How do I set paths in Python?

    Hi, I'm quite new to this Python scripting. I was following this pretty neat tutorial about scripting, then came the "I will not show you how to set the path, but ask someone and make sure they know what they're doing."
    I know NOBODY that knows what PI is, and I'm trying to start programming.
    I searched the internet, (Who the [moderator delete explitive] doesn't) and found NOTHING about setting paths.

    I really need help, for as I just had a birthday (13 years old), am the youngest [and smartest] person in my family, and.. well... I'm the smartest in my family (Hmm again, I'm 13 years old...)
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    what paths are you talking about? the path of your directories and files? or the path of the python libraries? to see the paths which python will search for its libraries, use sys.path
    Code:
    >>> import sys
    >>> sys.path

    Comment

    • alexcole
      New Member
      • Mar 2007
      • 31

      #3
      Umm, I don't really know.

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by alexcole
        Hi, I'm quite new to this Python scripting. I was following this pretty neat tutorial about scripting, then came the "I will not show you how to set the path, but ask someone and make sure they know what they're doing."
        I know NOBODY that knows what PI is, and I'm trying to start programming.
        I searched the internet, (Who the [moderator delete explitive] doesn't) and found NOTHING about setting paths.

        I really need help, for as I just had a birthday (13 years old), am the youngest [and smartest] person in my family, and.. well... I'm the smartest in my family (Hmm again, I'm 13 years old...)
        Ok mister "youngest and smartest". First of all, watch the language.
        Secondly, I'm pretty sure that you are talking about the PATH variable in you Windows system. There is a guy (who's web site is NOT for the faint of heart) who wrote a very cool utility for looking at and setting ENVIRONMENT VARIABLES (PATH is one of those). google "windows environment variable editor"; it's the first hit you'll get.

        Comment

        Working...