     rel = if Import.rootFile is "repl" then "." else Import.rootFile
     relative = (Path.relative FileSystem.realpathSync(rel), file).replace /^(\.\.\/|\.\.\\\\)/, ""
 
-    if relative is ""
-      literalKey = new Literal "\"#{ Path.basename file }\""
-    else
-      literalKey = new Literal "\"#{ relative }\""
+    importKey = relative or Path.basename file 
 
     unless file of Import.imported
       Import.imported[file] = no


      o.importingFile = file

      Import.properties.push [ literalKey, new Literal call.compile o ]

      Import.imported[file] = yes

      if relative is ""
        Import.importedDeclarations[variable] = new Call new Literal("__imports.get"), [literalKey]

    literalKey

  @flush: (o)  ->
    try
      return unless Import.properties.length
      return ["__imports", Import.assignImports o]
    finally
      Import.imported = {}
      Import.properties = []
      Import.rootFile = null
      Import.importedDeclarations = {}
      Import.delayedEnabled = no

  @assignImports: (o)  ->
    o = extend {}, o


    code = new Code []

    for property, codeBlock of properties
      accesses = [
        new Access new Literal property
      ]
      code.body.push new Assign new Value(thisLit, accesses), new Literal codeBlock

    for [importKey, codeBlock] in Import.properties
      accesses = [
        new Access new Literal "list"
        new Access new Literal "'#{ importKey }'"
      ]
      code.body.push new Assign new Value(thisLit, accesses), new Literal codeBlock

    if Import.delayedEnabled
      code.body.push new Literal "(function(a, b, c) { " +
