MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    关于device.json路径问题

    开发交流
    2
    3
    90
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HollisMeynell
      HollisMeynell last edited by

      怎样自定义device文件的路径,总是默认在执行命令的当前目录下新建,java开发,fileBasedDeviceInfo(path+"device.json")无效,请问使用setDeviceInfo如何修改路径

      1 Reply Last reply Reply Quote 0
      • Karlatemp
        Karlatemp last edited by

        fileBasedDeviceInfo等都是使用相对于 workingDir 的路径

        setWorkingDir()
        
        HollisMeynell 1 Reply Last reply Reply Quote 0
        • HollisMeynell
          HollisMeynell @Karlatemp last edited by

          @karlatemp 设置成功了,非常感谢

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact