using os.execl to call a java application

Gerhard Häring gerhard at bigfoot.de
Mon Mar 25 05:02:39 EST 2002


In article <83663l56qt.fsf at panacea.canonical.org>, Kragen Sitaker wrote:
> Louis Luangkesorn <lluang at northwestern.edu> writes:
>>   File "C:\docs\gmcode\prob4.py", line 74, in findrqsim
>>     os.path('c:\\docs\\ibmmodelswitch')
>> TypeError: object of type 'module' is not callable
> 
> os.path is a module.  I think you meant os.chdir, not os.path.
> 
> You should consider writing your paths as 'c:/docs/ibmmodelswitch' so
> you don't have to double backslash.

To avoid the double backslash, you can use raw strings, like r"c:\bla\blubs".

Gerhard



More information about the Python-list mailing list