From the course: QGIS and Python for AEC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a batch file to load Python bindings

Create a batch file to load Python bindings - QGIS Tutorial

From the course: QGIS and Python for AEC

Start my 1-month free trial

Create a batch file to load Python bindings

- [Instructor] In this video we're going to modify the plugin template that we created in the last video. We're going to modify the save.dxf, that's on your desktop. And we're going to compile the resources.qrc file into a Python file. After we run the batch file, we will end up with a resources.py file that's what's going to happen. So let's do that. So first of all, let's go into exercise files, go under five, creating plugins and under batch, there's a make resources.bat. Let's copy that. And then we'll paste it into the save.dxf folder. Okay. Now let's go into the save.dxf folder. Remember this was created by using the plugin builder, and now we have the make resources.bat. Let's look at that file just right click and go edit. I'm using notepad, just plain old notepad to look at this. And so we have echo off, so it doesn't spit out to the dos window and we're setting three batch files. The first one is the…

Contents