Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to transfer a music file, from "Telechargements" into my project
#1
my question here: Hi all! In my project, every time I load a music or an image it drops in my directory "Telechargements". But I should like it drops in my project. What shall I do ? Thanks
Quote
#2
(Sep-02-2017, 01:15 PM)sylas Wrote: What shall I do ?

Thou shalt post thy code that thee has so far.
micseydel likes this post
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Quote
#3
Not correct image.
snippsat wrote Sep-02-2017, 05:32 PM:
No base64 image as text
Quote
#4
That's not code!
Quote
#5
The picture is not complete.
Please post code as text and not encoded in base64 as picture where more of the half data is missing because the message is too long.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Quote
#6
I am on a project(game) with about 40 files. As I load a music, I save in the "uploads", but there, it is of no use for me. I must do something to transfer it in my project. Can you help me ? The screenshot was tried in order to show you my project. Within C++ , I knew how to . With our python forum I don't. Thanks for your reply.
Quote
#7
Quote:save in the "uploads",
Since you have some sort of save routine, does it allow you to save to a file on your local computer?
If so, save it as a binary file. You can then read it into your program with something like:
with open('My_file_name_here', 'rb'), as f:
    my_picture = f.read()
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to stop Xmodem after bin file transfer was finished shaya2103 0 160 Nov-27-2019, 04:33 PM
Last Post: shaya2103
  How to build exe/deployable file from Python Project ShikhaJain 1 316 Jul-04-2019, 05:37 PM
Last Post: snippsat
  Even if my file is "main.py",cannot run my project sylas 13 4,596 Mar-05-2018, 09:15 AM
Last Post: sylas
  Compile python project to single portable .exe file Campbell 5 4,659 Dec-05-2017, 01:20 PM
Last Post: buran
  Python script that transfer it self iboman5 6 1,536 Nov-13-2017, 05:27 PM
Last Post: AceScottie
  Python script that transfer it self iboman5 2 1,232 Nov-10-2017, 06:56 PM
Last Post: iboman5
  How to transfer a music file, from "uploads" directory into my project sylas 15 3,346 Sep-10-2017, 09:16 PM
Last Post: sylas
  Since PyCharm knows which file is "main", how can I tell it "run this project" sylas 7 3,111 Sep-03-2017, 11:48 AM
Last Post: Larz60+

Forum Jump:


Users browsing this thread: 1 Guest(s)