common/migration.py
changeset 3998 94cc7cad3d2d
parent 3890 d7a270f50f54
parent 3935 2fbb79054a1a
--- a/common/migration.py	Mon Nov 23 14:13:53 2009 +0100
+++ b/common/migration.py	Thu Dec 03 17:17:43 2009 +0100
@@ -268,6 +268,7 @@
         in interactive mode,  display the migration script path, ask for
         confirmation and execute it if confirmed
         """
+        migrscript = os.path.normpath(migrscript)
         if migrscript.endswith('.py'):
             script_mode = 'python'
         elif migrscript.endswith('.txt') or migrscript.endswith('.rst'):
@@ -295,7 +296,7 @@
                 return func(*args, **kwargs)
         else: # script_mode == 'doctest'
             import doctest
-            doctest.testfile(os.path.abspath(migrscript), module_relative=False,
+            doctest.testfile(migrscript, module_relative=False,
                              optionflags=doctest.ELLIPSIS, globs=scriptlocals)
 
     def cmd_option_renamed(self, oldname, newname):