This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
wdjpng
/
prismedia
forked from
LecygneNoir/prismedia
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Test if using python3 at the beginning of the script, and change shebang to do not force python3, as it enforce default python3 value and thus the check failed even if python2 is used
develop
LecygneNoir
4 years ago
parent
76e379ab97
commit
99eee2363b
1 changed files
with
5 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-5
prismedia_upload.py
+ 5
- 5
prismedia_upload.py
View File
@ -1,4 +1,4 @@
#!/usr/bin/env python
3
#!/usr/bin/env python
# coding: utf-8
"""
@ -63,8 +63,11 @@ Languages:
Japanese
,
Korean
,
Mandarin
,
Portuguese
,
Punjabi
,
Russian
,
Spanish
"""
from
os.path
import
dirname
,
realpath
import
sys
if
sys
.
version_info
[
0
]
<
3
:
raise
Exception
(
"
Python 3 or a more recent version is required.
"
)
from
os.path
import
dirname
,
realpath
import
datetime
import
locale
import
logging
@ -96,9 +99,6 @@ except ImportError:
'
see https://github.com/ahupp/python-magic
\n
'
)
exit
(
1
)
if
sys
.
version_info
[
0
]
<
3
:
raise
Exception
(
"
Python 3 or a more recent version is required.
"
)
VERSION
=
"
prismedia v0.7.1
"
VALID_PRIVACY_STATUSES
=
(
'
public
'
,
'
private
'
,
'
unlisted
'
)
Write
Preview
Loading…
Cancel
Save