Last active
May 3, 2018 09:41
-
-
Save yv84/65af0d80194f4bbb8362c3f1a1eb0e51 to your computer and use it in GitHub Desktop.
liquid_base_changelog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 40, | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "{'2.07.03-dsLoanOperationFindListChangeForPeriod.xml', '2.07.09-renameEnum.xml', '2.06.55-AddNewEnum.xml'}\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "from lxml import etree\n", | |
| "\n", | |
| "L_PATH = r\"C:\\Users\\vyudintsev\\dev\\ftfmcalc\\FTFMCALC\\database\\FMCalculation\\src\\main\\resources\\updates\"\n", | |
| "XML_L_FILE = r\"C:\\Users\\vyudintsev\\dev\\ftfmcalc\\FTFMCALC\\database\\FMCalculation\\src\\main\\resources\\updates\\changeLog.xml\"\n", | |
| "parser = etree.XMLParser()\n", | |
| "root = etree.parse(XML_L_FILE, parser)\n", | |
| "include = root.xpath(\"/*[name()='databaseChangeLog']/*[name()='include']/@file\")\n", | |
| "\n", | |
| "from os import listdir\n", | |
| "from os.path import isfile, join\n", | |
| "dir_files = [f for f in listdir(L_PATH) if isfile(join(L_PATH, f))]\n", | |
| "dir_files.remove('changeLog.xml')\n", | |
| "\n", | |
| "print(set(include).symmetric_difference(dir_files))" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [] | |
| } | |
| ], | |
| "metadata": { | |
| "kernelspec": { | |
| "display_name": "Python 3", | |
| "language": "python", | |
| "name": "python3" | |
| }, | |
| "language_info": { | |
| "codemirror_mode": { | |
| "name": "ipython", | |
| "version": 3 | |
| }, | |
| "file_extension": ".py", | |
| "mimetype": "text/x-python", | |
| "name": "python", | |
| "nbconvert_exporter": "python", | |
| "pygments_lexer": "ipython3", | |
| "version": "3.6.2" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment