【问题标题】:Path of current working directory当前工作目录的路径
【发布时间】:2014-09-15 15:29:13
【问题描述】:

我在 Windows 上安装了 clisp。我想加载一个文件,但我不能。我不知道我当前的工作目录是什么。我怎样才能看到它并改变它?提前致谢

【问题讨论】:

    标签: path lisp clisp cwd


    【解决方案1】:

    使用ext:cd

    显示:

    [1]> (ext:cd)
    #P"/Users/pu/"
    

    要更改,请添加路径名或字符串:

    [3]> (ext:cd #P"/")
    #P"/"
    [3]> (ext:cd)
    #P"/"
    
    [3]> (ext:cd "/Users")
    #P"/Users/"
    [3]> (ext:cd)
    #P"/Users/"
    

    【讨论】:

      【解决方案2】:

      尝试使用 default-pathname-defaults

      (print *default-pathname-defaults*)
      

      加载路径名

      (print *load-pathname*)
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-04-23
        • 2012-04-12
        • 2014-03-10
        • 2019-01-27
        • 1970-01-01
        • 1970-01-01
        • 2015-08-22
        相关资源
        最近更新 更多