zoukankan      html  css  js  c++  java
  • changeDirectory.py

    import os


    # change the current working directory from 'projectsrcdevelopment' to 'projectvolumedataexternal'
    def development2External(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    os.chdir(os.path.abspath('..'))
    os.chdir(os.path.abspath('..\volume\data\external'))

    # change the current working directory from 'projectvolumedataexternal' to 'projectsrcdevelopment'
    def external2Development(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..\src\development'))

    # change the current working directory from 'projectsrcdevelopment' to 'projectvolumedatalog'
    def development2Log(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    os.chdir(os.path.abspath('..'))
    os.chdir(os.path.abspath('..\volume\data\log'))

    # change the current working directory from 'projectvolumedatalog' to 'projectsrcdevelopment'
    def log2Development(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..\src\development'))

    # change the current working directory from 'projectsrcdevelopment' to 'projectvolumedata aw'
    def development2Raw(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    os.chdir(os.path.abspath('..'))
    os.chdir(os.path.abspath('..\volume\data\raw'))


    # change the current working directory from 'projectvolumedata aw' to 'projectsrcdevelopment'
    def raw2Development(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..\src\development'))


    # change the current working directory from 'projectsrcdevelopment' to 'projectvolumedataProcessed'
    def development2Processed(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    os.chdir(os.path.abspath('..'))
    os.chdir(os.path.abspath('..\volume\data\Processed'))

    # change the current working directory from 'projectvolumedataProcessed' to 'projectsrcdevelopment'
    def processed2Development(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..\src\development'))


    # change the current working directory from 'projectsrcdevelopment' to 'projectvolumedataproof'
    def development2Proof(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    os.chdir(os.path.abspath('..'))
    os.chdir(os.path.abspath('..\volume\data\proof'))

    # change the current working directory from 'projectvolumedataproof' to 'projectsrcdevelopment'
    def proof2Development(naming = ""):
    if naming != "":
    scriptPath = getScriptPath(naming)
    os.chdir(os.path.abspath(scriptPath))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..'))
    # os.chdir(os.path.abspath('..\src\development'))

    def getScriptPath(naming, rootLocal = "D:"):
    return rootLocal + "\DCG_PRF_Data_Team\DataCleaning\" + naming + "\project\src\development"
  • 相关阅读:
    TERSUS笔记员工信息409-修改
    TERSUS笔记员工信息408-查询
    TERSUS笔记员工信息407-07GO
    TERSUS笔记员工信息406-03首页
    TERSUS笔记员工信息405-04上一页
    TERSUS笔记员工信息404-05下一页
    TERSUS笔记员工信息403-06末页
    TERSUS笔记员工信息402-08每页条数逻辑
    layui 更新echarts版本后地图报错
    常用的CMS系统有哪些
  • 原文地址:https://www.cnblogs.com/zhulimin/p/15369440.html
Copyright © 2011-2022 走看看