Skip to content

Tag: python

Reload Flask app when template file changes under Linux

I am developing a flask application under Linux, and i’m suffering when i make any changes to template files. Actually i well configured my app to reload on template changes using PS: when i develop under Windows templates are reloading normally. EDIT I am using the built in server, and i run my app lik…

Unable to start a Python app using Supervisord

I have a small app that I want to start using supervisord. I’ve tried the following Installed supervisord and controlled a small script Read Introduction, Running Supervisord and Configuration File sections from the documentation Setting up groups in supervisord My initial shell script could start and s…

Get the size of a folder in Linux server

While the following code works well in windows, in Linux server (of pythonanywhere) the function only returns 0, without errors. What am I missing? Ref: Code from https://stackoverflow.com/a/37367965/6546440 Answer The solution was given by @gilen-tomas in the comments: A complete path is needed!

How can I install python-gasp on Ubuntu 16.04?

I use a Ubuntu 16.04 system, and I want to install the gasp for python. I was told that the following commands can help me to install the python-gasp: I tried the commands, but it seems not to work, because when I run it returned as Then I use $ whereis python-gasp to check the location of the python-gasp I

Change ownership and permission without terminal – Python

I have a gui made in glade and am stuck on one thing. I have a button that changes the ownership and permissions; it works fine except for folders and files owned by root. Is there anyway of invoking root privilages to run this command without having to input the root password in terminal? i.e. either predefi…

Python program executable for windows

I have Linux installed and Python 3.5. The program itself is made in Linux but i need to make it executable in windows. I cant see any program that can do this for python 3.5. Please give me some working option. pyinstaller, cx_freeze and py2exe dont work with 3.5 After fighting with depends for some time i g…