Browse Source

Include gitignore and minor fixes

oscarleiva 5 years ago
parent
commit
ab47cece57
3 changed files with 139 additions and 2 deletions
  1. 136 0
      .gitignore
  2. 2 1
      create_shortcut.py
  3. 1 1
      install_copy_files.py

+ 136 - 0
.gitignore

@@ -0,0 +1,136 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# pyenv
+.python-version
+
+# celery beat schedule file
+celerybeat-schedule
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+
+
+#PyCharm
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff:
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/dictionaries
+.idea/vcs.xml
+.idea/jsLibraryMappings.xml
+
+# Sensitive or high-churn files:
+.idea/dataSources.ids
+.idea/dataSources.xml
+.idea/dataSources.local.xml
+.idea/sqlDataSources.xml
+.idea/dynamic.xml
+.idea/uiDesigner.xml
+
+# Gradle:
+.idea/gradle.xml
+.idea/libraries
+
+# Mongo Explorer plugin:
+.idea/mongoSettings.xml
+
+.idea/
+
+

+ 2 - 1
create_shortcut.py

@@ -10,7 +10,8 @@ def create_shortcut():
     path = os.path.join(desktop, "Predespacho Regional.lnk")
     target = os.path.join(
         os.environ["LOCALAPPDATA"], "Merelec", "spr", "run.bat")
-    wDir = desktop
+    wDir = os.path.join(
+        os.environ["LOCALAPPDATA"], "Merelec", "spr")
     icon = os.path.join(os.environ["LOCALAPPDATA"],
                         "Merelec", "spr", "app.ico")
     shell = Dispatch('WScript.Shell')

+ 1 - 1
install_copy_files.py

@@ -20,7 +20,7 @@ def install():
         print("Copiando archivos del sistema")
         shutil.copytree(os.curdir, idir,
                         ignore=shutil.ignore_patterns(
-                            "install.bat", "install_copy_files.py", "mc3.exe", "miniconda_install.bat", ".git"),
+                            "install.bat", "install_copy_files.py", "mc3.exe", "miniconda_install.bat", ".git", "create_shortcut.py", ".vscode", ".gitignore"),
                         dirs_exist_ok=True)