maya-umbrella 0.11.0__py2.py3-none-any.whl → 0.12.1__py2.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.

Potentially problematic release.


This version of maya-umbrella might be problematic. Click here for more details.

@@ -1 +1 @@
1
- __version__ = "0.11.0"
1
+ __version__ = "0.12.1"
@@ -45,7 +45,7 @@ def read_file(path):
45
45
  path (str): File path of source.
46
46
 
47
47
  Returns:
48
- str: The contents of the file path.
48
+ bytes: The contents of the file path.
49
49
 
50
50
  """
51
51
  with open(path, "rb") as file_stream:
@@ -0,0 +1,15 @@
1
+ # Import built-in modules
2
+ import os
3
+
4
+ # Import local modules
5
+ from maya_umbrella.maya_funs import cmds
6
+ from maya_umbrella.maya_funs import om
7
+
8
+
9
+ def hook(virus_cleaner):
10
+ if not cmds.file(query=1, sceneName=1):
11
+ scene_name = om.currentFile()
12
+ scene_name = scene_name.replace("\\", "/")
13
+
14
+ if os.path.exists(scene_name):
15
+ cmds.file(rename=scene_name)
maya_umbrella/log.py CHANGED
@@ -31,7 +31,6 @@ def setup_logger(logger=None, logfile=None, log_level=None):
31
31
  logfile,
32
32
  mode="a",
33
33
  backupCount=7,
34
- delay=True,
35
34
  maxBytes=LOG_MAX_BYTES,
36
35
  )
37
36
  filehandler.setFormatter(Formatter(LOG_FORMAT))
maya_umbrella/scanner.py CHANGED
@@ -84,7 +84,7 @@ class MayaVirusScanner(object):
84
84
  Args:
85
85
  text_file (str): Path to the text file containing the list of file paths.
86
86
  """
87
- file_data = read_file(text_file)
87
+ file_data = read_file(text_file).decode()
88
88
  files = file_data.splitlines()
89
89
  return self.scan_files_from_list(files)
90
90
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maya_umbrella
3
- Version: 0.11.0
3
+ Version: 0.12.1
4
4
  Summary: Check and fix maya virus.
5
5
  Home-page: https://github.com/loonghao/maya_umbrella
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  maya_umbrella/__init__.py,sha256=rcCnFWmELeJsGoKvLHyzC_GmZu-eT1QXjQCHRGj6HuQ,529
2
- maya_umbrella/__version__.py,sha256=raMu9XA9JEjvdoTmFqcOw7qhJX24rYDP7XmS59TAO-Q,23
2
+ maya_umbrella/__version__.py,sha256=PAuBI8I6F9Yu_86XjI2yaWn8QmCd9ZvK7tkZLWvEg-Q,23
3
3
  maya_umbrella/_vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  maya_umbrella/_vendor/six/__init__.pyi,sha256=tU6T1qIa_1HEM5lYdk7qw9E3GdDokvpzy5D06PhlMfA,18
5
5
  maya_umbrella/_vendor/six/moves/__init__.pyi,sha256=jVS195D1cetBSWcwZ61-NYkaaI-EKlXjoF1o0I_pG9I,24
@@ -11,25 +11,26 @@ maya_umbrella/cleaner.py,sha256=Xj8BU0gohvh3E7RcDwQw_xryCzN5RBYGH9UTPVxiMPA,5045
11
11
  maya_umbrella/collector.py,sha256=rAFmvY8Isdle89ezn2-H36hSJd77iBvPBLRPzruCycA,13111
12
12
  maya_umbrella/constants.py,sha256=SuD8OP8e0Kh3a9ohyS5_MXjo5pHNQ8MWEPtJ6puZfIU,130
13
13
  maya_umbrella/defender.py,sha256=eT4uK23uOB1V8Y3uiaU1C2Tp-s1SngrGo3TWDbSIVJY,6008
14
- maya_umbrella/filesystem.py,sha256=fB7UNXzorC-878LgPd3CvQQuLxbjicnOR2y7AjAldeA,9535
14
+ maya_umbrella/filesystem.py,sha256=B9uhaRnzsj7UFwD9egDWtgR0lgBSV_iPvS0DuqcW-Vg,9537
15
15
  maya_umbrella/hooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  maya_umbrella/hooks/delete_turtle.py,sha256=OPFRFH1iwonHvETndrP87MZQlJLhxpe564AJE3KyJY8,761
17
17
  maya_umbrella/hooks/delete_unknown_plugin_node.py,sha256=5YXaOem-t9Em1sr3wmBqWk5He1Lm8CsOMQsSQ3ixLfs,1293
18
18
  maya_umbrella/hooks/fix_model_panel.py,sha256=dLuMOz5uQ1nqAboNWMCx-Bi_gHM3FQNTlGxPG5wRYEs,556
19
+ maya_umbrella/hooks/fix_no_scene_name.py,sha256=isE7_uOcByVbg9YG6FenzmJrodoteo8sheVzyDnrFqY,381
19
20
  maya_umbrella/hooks/fix_on_model_change_3dc.py,sha256=o4WEQPcHNzaTMXdNnHZWWNCYlHfLxcSFYXR4YW0ZLwk,484
20
21
  maya_umbrella/i18n.py,sha256=aWaIncHh5Zq02hErMbHHLoQm_8Fu-YfBWQ15sUgsBJk,2642
21
22
  maya_umbrella/locales/en_US.json,sha256=LW2gPgO2YJIYR5UfcIBuxW_DS7rf4gkjeVuADqs1V5s,962
22
23
  maya_umbrella/locales/zh_CN.json,sha256=UsuRN2yaxxc9LE-7NQkbMqrkjXjNhNegS0QRkQLSTiE,1006
23
- maya_umbrella/log.py,sha256=8CY_sCPOmxDOY2oHLZel2QjZiY4HsXKwVu9vNWmScTc,1379
24
+ maya_umbrella/log.py,sha256=SLgBPpnDpkDhOU94UHNPqanhKr6aZiJn4XdwIsoXD4M,1355
24
25
  maya_umbrella/maya_funs.py,sha256=_4LaMO4cRTCcbgNj2ei7UtSLAnCRY_ylHiLGKgvM4sE,3652
25
- maya_umbrella/scanner.py,sha256=2z9ugJbwr4-4_aXCozkgzb4htBPa8PVPnw_S12S-isE,4419
26
+ maya_umbrella/scanner.py,sha256=1-GY-Jx1iECnAo-L2Lw5e5t5zaQsMwWDH0A4TOjlIww,4428
26
27
  maya_umbrella/signatures.py,sha256=GmsqpGa98WLg1ZeixxVEcTypveM0kc5dA5kb56y9kVI,658
27
28
  maya_umbrella/vaccine.py,sha256=aBW6pdT4tD4OMBPZ-d3E4_n16Rylz-2gb7JWzMZVPK0,1022
28
29
  maya_umbrella/vaccines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
30
  maya_umbrella/vaccines/vaccine1.py,sha256=WLo1uJElTLSjVCf5CBtRNU4HKs63my5mkHiGqTfnNEE,489
30
31
  maya_umbrella/vaccines/vaccine2.py,sha256=qYiI_-BSojgN7j4esYCGBDLeyBSneDOGUwZhKHccxh8,2170
31
32
  maya_umbrella/vaccines/vaccine3.py,sha256=AgYxpflStURawobBQX0F0N_4uDwyV1IWCvZ6QLMmKpA,3633
32
- maya_umbrella-0.11.0.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
33
- maya_umbrella-0.11.0.dist-info/METADATA,sha256=b0Yc0GlH7LrTX-ugh1xASQawXTZvbx3bUUINerUv3l0,11722
34
- maya_umbrella-0.11.0.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
35
- maya_umbrella-0.11.0.dist-info/RECORD,,
33
+ maya_umbrella-0.12.1.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
34
+ maya_umbrella-0.12.1.dist-info/METADATA,sha256=u17mEb0q-lAj0D0V3GjyUhb9PjCvghyLnHWf3nQU9wM,11722
35
+ maya_umbrella-0.12.1.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
36
+ maya_umbrella-0.12.1.dist-info/RECORD,,