|
| 1 | +''' |
| 2 | +Copyright (C) 2014 - 2017 Jacques de Hooge, Geatec Engineering, www.geatec.com |
| 3 | + |
| 4 | +This program is free software. |
| 5 | +You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence. |
| 6 | + |
| 7 | +This program is distributed in the hope that it will be useful, |
| 8 | +but WITHOUT ANY WARRANTY, without even the implied warranty of |
| 9 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 10 | +See the QQuickLicence at www.qquick.org/licence.html for details. |
| 11 | +''' |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +#==================================================================================================== |
| 16 | +# General options |
| 17 | +# All options have default value False |
| 18 | +#==================================================================================================== |
| 19 | + |
| 20 | +obfuscate_strings = True # Don't rely on this for sensitive information |
| 21 | +obfuscated_name_tail = '_opy_' # Will be added to all obfuscated names to avoid clashes with plain names |
| 22 | +plain_marker = '_opy_' # Strings or comments containing this marker will not be obfuscated |
| 23 | +pep8_comments = False # If True, only inline comments of the form <blank><blank>#<blank> |
| 24 | + # will be recognized |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +#==================================================================================================== |
| 29 | +# Extensions of files that should be obfuscated |
| 30 | +# Typically these are files containing Python source code |
| 31 | +# Other files are just copied to the target directory |
| 32 | +#==================================================================================================== |
| 33 | + |
| 34 | +source_extensions = ''' |
| 35 | +py |
| 36 | +pyx |
| 37 | +''' |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +#==================================================================================================== |
| 42 | +# Extensions of files that should neither be obfuscated nor copied to the target directory |
| 43 | +# Typically these are .pyc files, which could easily be decompiled, breaking obfuscation |
| 44 | +#==================================================================================================== |
| 45 | + |
| 46 | +skip_extensions = ''' |
| 47 | +pyc |
| 48 | +''' |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +#==================================================================================================== |
| 53 | +# Fragments that, when occuring in the path of a file, will cause this file to be ignored |
| 54 | +# In other words, such files will neither be ofuscated nor copied |
| 55 | +# Use this to exclude complete directories from any processing by Opy |
| 56 | +# N.B. Use forward slashes rather than backslashes, also on Windows! |
| 57 | +#==================================================================================================== |
| 58 | + |
| 59 | +skip_path_fragments = ''' |
| 60 | +/test_skip_path_fragments/ # This fragment included for test purposes only |
| 61 | +''' |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +#==================================================================================================== |
| 66 | +# Modules in sys.path containing identifiers that should not be obfuscated |
| 67 | +# Typically these are installed standard or 3rd party modules of which you have no source code |
| 68 | +# Use dotted names if needed, e.g. include both matplotlib and matplotlib.pyplot |
| 69 | +#==================================================================================================== |
| 70 | + |
| 71 | +external_modules = ''' |
| 72 | +re |
| 73 | +os |
| 74 | +sys |
| 75 | +errno |
| 76 | +keyword |
| 77 | +importlib |
| 78 | +random |
| 79 | +codecs |
| 80 | +shutil |
| 81 | +''' |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | +#==================================================================================================== |
| 86 | +# Relative path + name of Python source files containing identifiers that should not be obfuscated |
| 87 | +# Typically these are human readable settings files loaded and exec'ed at runtime by your program |
| 88 | +# Do not use this facility for files that are imported, that's what external_modules is for |
| 89 | +#==================================================================================================== |
| 90 | + |
| 91 | +plain_files = ''' |
| 92 | +opy_config.txt |
| 93 | +''' |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +#==================================================================================================== |
| 98 | +# Extra identifiers and module names (as opposed to contents) that should not be obfuscated |
| 99 | +# Probably at least the names of your main modules (so not their filenames) go here |
| 100 | +#==================================================================================================== |
| 101 | + |
| 102 | +plain_names = ''' |
| 103 | +opy |
| 104 | +currentModule |
| 105 | +dog_walker |
| 106 | +''' |
0 commit comments