From: darryl <dev...@cs...> - 2003-05-29 21:10:35
|
Howdy all: I'm trying out pythoncard for the first time so bear with me. When i try and run minimal.py it bombs right away. Platform: Windows 2000 wxPython: 2.4.0.7 PythonCard: 0.7 (with config.py from CVS) Here's a traceback when i try and import config.py unable to create config directory %USERPROFILE%\.pythoncard Traceback (most recent call last): File "<interactive input>", line 1, in ? File "C:\Python22\Lib\site-packages\PythonCardPrototype\config.py", line 59, in ? except: File "C:\Python22\lib\shutil.py", line 73, in copy2 copyfile(src, dst) File "C:\Python22\lib\shutil.py", line 29, in copyfile fdst =3D open(dst, 'wb') IOError: [Errno 2] No such file or directory: '%USERPROFILE%\\.pythoncard\\pythoncard_config.txt' >From the interactive prompt: >>> os.path.join(os.environ['HOME'],".pythoncard") '%USERPROFILE%\\.pythoncard' It seems that it's bombing when trying to figure out the linux HOME dir vs the windows USERPROFILE -Darryl |