Ticket #814 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

repyhelper fails to import files from the current directory...

Reported by: justinc Owned by: justinc
Priority: major Milestone:
Component: repy portability Version: 0.1o
Severity: Medium Keywords:
Cc: cemeyer Blocking:
Blocked By:

Description

When importing a file in the current directory, repyhelper now has an exception. This is almost certainly the result of the fix for #799 (r3329).

>>> import repyhelper
>>> repyhelper.translate_and_import('centralizedadvertise.repy')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "repyhelper.py", line 436, in translate_and_import
    modulename = translate(filename, shared_mycontext, callfunc, callargs, force_overwrite)
  File "repyhelper.py", line 387, in translate
    _generate_python_file_from_repy(filenamewithpath, generatedfilenamewithpath, shared_mycontext, callfunc, callargs)
  File "repyhelper.py", line 224, in _generate_python_file_from_repy
    os.makedirs(os.path.dirname(generatedfilename))
  File "/usr/lib64/python2.5/os.py", line 171, in makedirs
    mkdir(name, mode)
OSError: [Errno 2] No such file or directory: ''

Change History

Changed 10 years ago by justinc

  • status changed from new to closed
  • resolution set to fixed

Fixed in r3345.

Note: See TracTickets for help on using tickets.