kmisc 2.1.103__py3-none-any.whl → 2.1.105__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kmisc/__init__.py CHANGED
@@ -2008,6 +2008,7 @@ def findXML(xmlfile,find_name=None,find_path=None,default=None,out='xmlobj',get_
2008
2008
  # Searching path from found root or original root
2009
2009
  if find_path and isinstance(find_path,str):
2010
2010
  if find_path[0] == '/': find_path=find_path[1:]
2011
+ elif len(find_path) > 2 and find_path[:2] == './': find_path=find_path[2:]
2011
2012
  #ex: root.findall('./Menu/Setting/[@name="Administrator Password"]/Information/HasPassword'):
2012
2013
  found_path=find_item(found_root[0],find_path.split('/'))
2013
2014
  # <element>.tag: name, .text: data, .attrib: dict
@@ -2451,7 +2452,7 @@ def find_cdrom_dev(size=None):
2451
2452
  if os.path.isfile('{0}/device/model'.format(rrr)):
2452
2453
  with open('{0}/device/model'.format(rrr),'r') as fpp:
2453
2454
  model=fpp.read()
2454
- for ii in ['CDROM','DVD-ROM','DVD-RW']:
2455
+ for ii in ['CDROM','DVD-ROM','DVD-RW','File-Stor Gadget']: #File-Stor Gadget for OpenBMC's cdrom
2455
2456
  if ii in model:
2456
2457
  if IsNone(size):
2457
2458
  return '/dev/{0}'.format(dd)
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kmisc
3
- Version: 2.1.103
3
+ Version: 2.1.105
4
4
  Summary: Enginering useful library
5
5
  Home-page: https://github.com/kagepark/kmisc
6
6
  Author: Kage Park
7
7
  License: MIT
8
+ Platform: UNKNOWN
8
9
  Classifier: Programming Language :: Python :: 2
9
10
  Classifier: Programming Language :: Python :: 3
10
11
  Classifier: License :: OSI Approved :: MIT License
@@ -265,3 +266,5 @@ ls : similar as linux ls command
265
266
  IsSame: check both data is same or not
266
267
 
267
268
  etc...
269
+
270
+
@@ -0,0 +1,6 @@
1
+ kmisc/__init__.py,sha256=3gWFv6ocpxSAvoKhEtlRrRi-2OuEoqJGWwsD1tjlKbE,135180
2
+ kmisc-2.1.105.dist-info/LICENSE,sha256=mn9ekhb34HJxsrVhcxrLXJUzy55T62zg-Gh9Ro0mVJI,1066
3
+ kmisc-2.1.105.dist-info/METADATA,sha256=HgKzOervsGcaNI_nLgSwdNnpNGQShNJ_6pVimjBI8mg,5523
4
+ kmisc-2.1.105.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
5
+ kmisc-2.1.105.dist-info/top_level.txt,sha256=wvdHf5aQTqcGYvxk-F9E_BMWLMhlwC8INBmwO-V6_X4,6
6
+ kmisc-2.1.105.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,6 +0,0 @@
1
- kmisc/__init__.py,sha256=M_qZMlje0d2XVnaVKiReSbfllci2Wxs0NVQpKf8aMvA,135036
2
- kmisc-2.1.103.dist-info/LICENSE,sha256=mn9ekhb34HJxsrVhcxrLXJUzy55T62zg-Gh9Ro0mVJI,1066
3
- kmisc-2.1.103.dist-info/METADATA,sha256=ELQ4-WtZLBetUCuzzOt3EwQDxh2MsjWH0H28tJTKw70,5503
4
- kmisc-2.1.103.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
5
- kmisc-2.1.103.dist-info/top_level.txt,sha256=wvdHf5aQTqcGYvxk-F9E_BMWLMhlwC8INBmwO-V6_X4,6
6
- kmisc-2.1.103.dist-info/RECORD,,