[Bug 57461] New: python project does not set current directory correctly

Stuart stuartw at kcbbs.gen.nz
Sun Apr 20 02:28:05 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=57461     
           Summary: python project does not set current directory correctly
           Product: kdevelop
           Version: unspecified
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: stuartw at kcbbs.gen.nz


Version:           3.0.0a4 (using KDE KDE 3.1)
Installed from:    RedHat RPMs
OS:          Linux

after creating a new python project (well, 'importing' one actually) in Gideon 3.0.0a4 and running the python resulting the 'current directory' from the point of view of the python program is my home directory, NOT the project directory where the python program is.
This creates problems with importing python scripts in that project.
my project is in '/home/stuart/mtg2'
the mtg2.py python returns '/home/stuartw' from the call os.getcwd() and I cannot import scripts in that directory or subdirectories setup with relative python load paths.
this applies also when a shell windows is used to exectute the program.




More information about the KDevelop-devel mailing list